read file line by line c#
// Read the file and display it line by line.
System.IO.StreamReader file =
new System.IO.StreamReader(@"c:\test.txt");
while((line = file.ReadLine()) != null)
{
System.Console.WriteLine(line);
counter++;
}
Also in C#:
- while loop c#
- s3 upload base64 .net core
- .net core copy file in folder to root
- c# max sequence contains no elements
- fieldconverter c#
- c# integer to bit string
- how to change text to bold through script unity
- copy a list C#
- c# one line set
- string to uint c#
- c# pass mouse events to parent
- call stored proc c#
- random number generator c#
- functions unity
- add spaces between words unity
- c# shorten an method
- compose graphql query string in c#
- c# relaxed boolean cast
- how to say or in c#
- cshtml foreach
- how to add movement in unity
- c# get today's date
- c# pull request
- open link c#