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.Fi
There's a simpler workaround:
// 1. Convert the items on the array to single string with the separator "\n" between the items string AllItemsInOneString= string.Join("\n", StringArrayToSave); // 2. Save with WriteAllText instead File.WriteAllText(FilePath, AllItemsInOneString);