all
This question is related to two methods in System.IO.File:
File.WriteAllLines and File.ReadAllLines
When I save a List[string] ListA by using
File.WriteAllLines("filename",ListA.ToArray());
There will be an empty line append to the output file.
So each time I load this file by calling File.ReadAllLines
, I will always get one more empty line.
It's annoying, as I have to "remove" it manually each time.
Does anyone suffering same problem? And how you deal with it?
Thanks