A Love letter in C#

Hey Guys. I wanted To Give my GF a 1 year anniversary sort of special present. I wanted to write her a letter in C#. Or more Exactly I wanted to make an .exe which would Open and the words come somewhat like I'm typing them. Since i'm not a pro in C# I used a method in which i Read a text file from a source code the text file but I cannot figure it out how to make it "appear" and not just boom it's Open. Here is the Code I used.

int counter =0; string line;

 System.IO.StreamReader file = new System.IO.StreamReader(@"c:\Users\Sorin\Desktop\1.txt"); while((line = file.ReadLine()) != null) { System.Console.WriteLine (line); counter++; } file.Close(); System.Console.ReadLine(); 

. Can anyone help me ? I'll try to figure it out how to Make it an .exe so she only needs to Open it and boom. :D. Thanks guys.

by Fir3Soul via /r/csharp

Leave a Reply