Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
One way of doing it is;string filename = "yourtextfilepath.txt";if (File.Exists(filename)){ string[] lines = File.ReadAllLines(filename); Console.WriteLine(lines["the line number that you want to print - 1"]);}If you dont want to read all the lines here is another...
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.