- Регистрация
- 21.08.2013
- Сообщения
- 249
- Благодарностей
- 12
- Баллы
- 18
I am trying to write text to a file but I would like to overwrite the current file and not to append to it.
The FileAppendString method obviously appends to the file but I need to overwrite
Код:
string path = {pathToFile};
string text = "it is new line in the file!";
bool appendNewLine = true;
FileSystem.FileAppendString(path, text, appendNewLine);