When I save the contents of the String [] array using System.IO.File.WriteAllLines, there is always an empty line at the end of the file. For example:
System.IO.File.WriteAllLines(Application.dataPath + "/test.txt",["a", "b", "c"]);
Produces a file (without underscore):
a b c _
There was already such a topic: An empty line in .Net File.WriteAllLines, is this an error? but the author said that "I think something is wrong with my data, that my problem is not WritAllLines", and it was closed as "too localized" (?!?).
This is mistake? How can I get rid of it easily (for now, I just ignore it when reading the file again)?
user1557862
source share