everything
This question is related to two methods in System.IO.File:
File.WriteAllLines and File.ReadAllLines
When I save List [string] ListA with
File.WriteAllLines("filename",ListA.ToArray());
An empty line will be added to the output file.
So every time I load this file by calling File.ReadAllLines , I always get another empty line.
This is annoying because I have to "delete" it manually each time.
Does anyone have the same problem? And how do you deal with this?
thanks
Steven du
source share