SA-MP Forums Archive
Reading a file like.. backwards? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Reading a file like.. backwards? (/showthread.php?tid=376312)



Reading a file like.. backwards? - Seven_of_Nine - 09.09.2012

What'd like to make is a script that reads this:
Code:
seven
my name is
hi
from a file containing this:
Code:
hi
my name is
seven
is this possible?


Re: Reading a file like.. backwards? - ReVo_ - 09.09.2012

i never used this function before, but this could help you https://sampwiki.blast.hk/wiki/Fseek


Re: Reading a file like.. backwards? - Seven_of_Nine - 09.09.2012

Thanks, that could help, because if I use fseek to put the pointer to the begginning of the file I can write the data backwards
rep 4 u