private void Convert() { List <string> corrected = new List <string>(); for (int i = 0; i < Lines.Count; i++) { string line = Lines[i]; string[] columns = line.Split(new[] { SelectedDelimiter.Value }, StringSplitOptions.None); string output = string.Empty; for (int j = 0; j < 8; j++) { output += columns[j] + ";"; } corrected.Add(output); } string folder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); string path = Path.Combine(folder, "Employee.txt"); AppFile.WriteTextFile(corrected, path, Encoding.UTF8); }