Hello all,
I spent about 2 hours searching for an answer to this on the web and could not find anything that gave me a clear answer.
Currently I read in a file as a TEXT file in my program. I take the file and I do a line count on it to determine how many lines are in it. What I need to do is use that line count to read the LAST line in the file (I also use it to determine how the program should continue).
Here is what I use to determine line count; it works fine as the size of the files will ALWAYS be small.
What I would like to do is then read the line number of the file based on LineCount but I can't figure out or find a way to read the last line based on this...Code:int LineCount = File.ReadAllLines(MajorRev).Length
Any help is creatly appreciated. Thanks!![]()




Reply With Quote