Дело было так, сидел тренировался с массивами и записью их в отдельный файл, ну и накосячил с кодом, получилась аж такая тема что TXT вышел размером в 10гб + Хотите забить свой диск - используйте этот код... Да, я знаю что не надо было создавать второй массив, но похрену, вопрос такой: как мне удалять строки которые уже записались в другой файл... using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace slaves { internal class Program { static void Main(string[] args) { string notUniquie = ("C://Users//кринжик//Desktop//strings.txt"); string uniquie = "C://Users//кринжик/Desktop//uniquie.txt"; string[] ase = File.ReadAllLines(notUniquie) .Where(username => username != string.Empty) .Distinct() .ToArray(); string[] newFile = ase; Array.Sort(newFile); StreamWriter sw = new StreamWriter(uniquie, true, Encoding.ASCII); for (int i = 0; i < newFile.Length; i++) { while (newFile.Length > 0) { sw.WriteLine(newFile[i]); } } sw.Close(); } } } C# using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace slaves { internal class Program { static void Main(string[] args) { string notUniquie = ("C://Users//кринжик//Desktop//strings.txt"); string uniquie = "C://Users//кринжик/Desktop//uniquie.txt"; string[] ase = File.ReadAllLines(notUniquie) .Where(username => username != string.Empty) .Distinct() .ToArray(); string[] newFile = ase; Array.Sort(newFile); StreamWriter sw = new StreamWriter(uniquie, true, Encoding.ASCII); for (int i = 0; i < newFile.Length; i++) { while (newFile.Length > 0) { sw.WriteLine(newFile[i]); } } sw.Close(); } } } С анлгийским у меня всё плохо, букву i в unique нужно убрать, но пока что мне по барабану upd: цикл while тут и нахуй не нужон, я долбаёб, извините, всем пока.