-
Notifications
You must be signed in to change notification settings - Fork 0
class IO
nagahoge edited this page Dec 1, 2012
·
5 revisions
IO.Foreach("lines.txt", Encoding.UTF8, line =>
Console.WriteLine(line));
using (var reader = new StreamReader("lines.txt", Encoding.UTF8))
{
string line;
while ((line = reader.ReadLine()) != null)
{
Console.WriteLine(line);
}
}
Use default encoding Encoding.Default.