Friday, April 4, 2014

Reading text from a file as blocks


Simplified example:



for (int x = 0; x < myStr.Count; ++x)
{
Console.WriteLine(myStr[x]);
}



Note that in my sample the use of Console.Write() rather than WriteLine() might be

preferable, given that the code has added newlines to the strings:



Console.Write(myStr[x]);



- Wayne



No comments:

Post a Comment