Skip to content

Instantly share code, notes, and snippets.

@paulodiogo
Last active August 29, 2015 13:56
Show Gist options
  • Save paulodiogo/9134313 to your computer and use it in GitHub Desktop.
Save paulodiogo/9134313 to your computer and use it in GitHub Desktop.
Lendo arquivos em c# usando StreamReader
string text = string.Empty;
using (StreamReader reader = new StreamReader(filePath, Encoding.UTF8))
{
text = reader.ReadToEnd();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment