Reading file backwards
#9

https://forum.sa-mp.com/showpost.php...82&postcount=8

This should be what you are looking for. It doesn't actually read the file backwards, but it creates a copy with reversed line order which you can open afterwards and use regular file functions.

You must define MAX_LINE_LENGTH to what you guess will be the max. line length. Unfortunately it buffers each line so that is required to know.
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)