svetoslavhl

StreamReader

Dec 22nd, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3.  
  4.  
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. StreamReader reader = new StreamReader("D:\\text.txt");
  10.  
  11. string line = reader.ReadLine();
  12.  
  13. Console.WriteLine(line);
  14. }
  15. }
Add Comment
Please, Sign In to add comment