What is the difference between File.ReadAllLines() and File.ReadAllText()?
File.ReadAllLines()
File.ReadAllText()
ReadAllLines returns an array of strings. Each string contains a single line of the file.
ReadAllLines
ReadAllText returns a single string containing all the lines of the file.
ReadAllText
1.4m articles
1.4m replys
5 comments
57.0k users