SA-MP Forums Archive
File - 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: File (/showthread.php?tid=602405)



File - K0P - 06.03.2016

How can i get the last line if a file?


Re: File - Stones - 06.03.2016

Can you be more specific? :/


Re: File - K0P - 06.03.2016

forexample i hava this data in a file:

Код:
Float:x
Float:y
Float:z
Float:a
how can i get the last line and delete it


Re: File - ayoub001 - 06.03.2016

are you using Y_ini?


Re: File - SyS - 07.03.2016

Scroll down for last line and delete it


Re: File - SickAttack - 07.03.2016

http://forum.sa-mp.com/showpost.php?...48&postcount=4

Search the forum next time!


Re: File - K0P - 07.03.2016

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Not that,i want to delete a line which contains float too,i need a function that get the last line of the file and deletes it.


Re: File - Infinity - 07.03.2016

Quote:
Originally Posted by K0P
Посмотреть сообщение
Not that,i want to delete a line which contains float too,i need a function that get the last line of the file and deletes it.
That's exactly what that code does. It deletes a specific line from a file, no matter what the content of the file is.


Re: File - Threshold - 07.03.2016

Yes, but I think he wants a function that returns the last line of the file.


Re: File - K0P - 07.03.2016

Yeah,thats what i want.
Anyone can make it?




@Wish ****** was here