public static void AddStringsToFile(string[] source, string filePath) { FileStream file; StreamWriter oTextFile; List strList = new List(); byte[] bytes = new byte[23]; file = new FileStream(filePath, FileMode.Append, FileAccess.Write); oTextFile = new StreamWriter(file); for (int i = 0; i < source.Length; i++) { oTextFile.WriteLine(source[i]); // // bytes file.Write(bytes, 0, bytes.Length); // strings oTextFile.Write(strList[0]); // } if (file != null) oTextFile.Close(); else ErrorProvider.Throw("Не удалось открыть файл " + filePath + " на запись"); }