Appending text
#1

Hello,

Is any way to user Fseek to add some at start of file without overwriting all in file?

With file
Quote:

Line1=SecondText
Line2=ThirdText
EndOfFile

I would like to do: "AddLineAtStartOfFile("Line0=FirstText")";
Quote:

Line0=FirstText
Line1=SecondText
Line2=ThirdText
EndOfFile

Any ideas how to do it?

-----

This script only ovewrite all

pawn Код:
new File:fileX = fopen(fname,io_readwrite);
fseek(fileX,0,seek_start);
fwrite(fileX,"Line0=FirstText\n");
fclose(fileX);
Reply


Messages In This Thread
Appending text - by papedo - 19.10.2013, 09:33
Re: Appending text - by RajatPawar - 19.10.2013, 09:37
Re: Appending text - by papedo - 19.10.2013, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)