Thanks for the reply. I have already thought of this solution but i searched the simplest one. Ok, i'll try using a temporary file
L
lucia4444es
@lucia4444es
Posts
-
How to add a lineat the beginnig of a file? -
How to add a lineat the beginnig of a file?:confused:I need to insert a new line at the beginning of a text file but i don´t know how to do this without overwriting the first line. This is my code: ... file.SeekToBegin(); file.WriteString(text); ... I've also tried this: ... file.SeekToBegin(); file.WriteString("\r\n"); file.WriteString(text); ... but it doesn´t work. Could anyone help me? Thanks Lucia