Skip to content

Instantly share code, notes, and snippets.

@dkalamari
Created May 29, 2013 05:22
Show Gist options
  • Select an option

  • Save dkalamari/5668150 to your computer and use it in GitHub Desktop.

Select an option

Save dkalamari/5668150 to your computer and use it in GitHub Desktop.
Read file line by line
StreamReader reader = new StreamReader(PathToFile);
while (!reader.EndOfStream)
{
string line = reader.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment