Я использую этот
for($number=0; $number < 5; $number++){
StreamWriter x = new StreamWriter("C:\\test.txt");
x.WriteLine(number);
x.Close();
}
если что-то находится в test.text, этот код не будет перезаписывать его. У меня есть 2 вопроса
1: how can I make it overwrite the file
2: how can I append to the same file
с использованием С#