Skip to content

Instantly share code, notes, and snippets.

@taylonr
Created July 2, 2012 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taylonr/3033763 to your computer and use it in GitHub Desktop.
Save taylonr/3033763 to your computer and use it in GitHub Desktop.
Bad String Loop
string file = null;
while ((line = sr.ReadLine()) != null)
{
file += line;
}
window.SetText(file);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment