Created
November 11, 2015 15:20
-
-
Save disklosr/a618326c7d614a65d2cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filestream = new FileStream(textFilePath, | |
FileMode.Open, | |
FileAccess.Read, | |
FileShare.ReadWrite); | |
var file = new StreamReader(filestream, Encoding.UTF8, true, 128); | |
while ((lineOfText = file.ReadLine()) != null) | |
{ | |
//do something with the lineOfText | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment