Reading file backwards
#6

You can try experimenting with something like:

PHP Code:
// Open "file.txt" in "read only" mode
new File:handle fopen("file.txt"io_read);
 
// If "file.txt" is open
if(handle) {
    
// Jump to the last byte of "file.txt", and print its position
    
printf("End of file position: %d"fseek(handle0seek_end));
    
fclose(handle);

( Taken from SA-MP wiki https://sampwiki.blast.hk/wiki/Fseek )
Reply


Messages In This Thread
Reading file backwards - by Suttix - 28.03.2019, 18:18
Re: Reading file backwards - by Suttix - 28.03.2019, 21:02
Re: Reading file backwards - by TokicMajstor - 28.03.2019, 23:00
Re: Reading file backwards - by Suttix - 29.03.2019, 00:23
Re: Reading file backwards - by introzen - 29.03.2019, 08:44
Re: Reading file backwards - by Logic_ - 29.03.2019, 09:24
Re: Reading file backwards - by Suttix - 29.03.2019, 11:24
Re: Reading file backwards - by Suttix - 29.03.2019, 11:59
Re: Reading file backwards - by NaS - 29.03.2019, 13:59
Re: Reading file backwards - by Suttix - 29.03.2019, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)