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
You can also save a file with WriteAllText and join array of lines manually like:
File.WriteAllText(file, String.Join("\r\n",correctedLines));