#1

How can i get the last line if a file?
Reply
#2

Can you be more specific? :/
Reply
#3

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
Reply
#4

are you using Y_ini?
Reply
#5

Scroll down for last line and delete it
Reply
#6

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

Search the forum next time!
Reply
#7

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.
Reply
#8

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.
Reply
#9

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

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




@Wish ****** was here
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)