You can call WriteAllLines and ReadAllLines to write a String array to a file or read a String array from a file. If you genuinely need to read or write one line at a time then you would create a StreamReader or StreamWriter and call ReadLine or WriteLine.
Thanks thats what i did in the end, as i need to load the text file line by line, because i need to do different things depending on what text the line holds.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.