Advertisement
Guest User

asdadasdasd

a guest
May 1st, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1.         private void ReadFile()
  2.         {
  3.             FileStream fs = null;
  4.             StreamReader sr = null;
  5.  
  6.             fs = new FileStream(@"C:\Users\Bernhard\Desktop\Dictionary.txt", FileMode.Open);
  7.             sr = new StreamReader(fs);
  8.  
  9.             int i = 0;
  10.  
  11.             while (!sr.EndOfStream)
  12.             {
  13.  
  14.                 string line = sr.ReadLine();
  15.                 if (line[0] != '%')
  16.                 {
  17.                     line = _MyStrings[i];
  18.                     i++;
  19.                 }
  20.  
  21.  
  22.             }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement