When I'm saving content of the String[] array with System.IO.File.WriteAllLines, at the end of a file is always left a blank line. For example:
System.IO.File.WriteAllLines(Application.dataPath + "/test.txt",["a", "b", "c"]);
Produces file (without underscore):
a
b
c
_
There was already such topic: Empty line in .Net File.WriteAllLines, is a bug? , but autor said that "I think there are something wrong with my data,that's my problem but not the WritAllLines" and it was closed as "too localized" (?!?).
It's a bug? How can I easily get rid of it (for now I'm just ignoring it when reading file again)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…