19.10.2013, 09:33
Hello,
Is any way to user Fseek to add some at start of file without overwriting all in file?
With file
I would like to do: "AddLineAtStartOfFile("Line0=FirstText")";
Any ideas how to do it? 
-----
This script only ovewrite all
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 |
Quote:
Line0=FirstText Line1=SecondText Line2=ThirdText EndOfFile |

-----
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);