How to read the last lines of file?
#1

Hello,
I'm saving player's reports to file like that:

Quote:

[2010-04-21, 11:10] Player_Name: Report goes here
[2010-04-22, 21:12] Player_Name: Report goes here
[2010-04-22, 21:18] Player_Name: Report goes here
[2010-04-22, 21:33] Player_Name: Report goes here
[2010-04-22, 21:40] Player_Name: Report goes here
I want to make command, which would read the file and show latest 3 reports (last 3 lines of the file)..

Could anybody help me using dini ?
Reply


Messages In This Thread
How to read the last lines of file? - by SiJ - 26.04.2010, 12:50
Re: How to read the last lines of file? - by SiJ - 27.04.2010, 13:18
Re: How to read the last lines of file? - by [MWR]Blood - 27.04.2010, 13:20
Re: How to read the last lines of file? - by SiJ - 27.04.2010, 14:34
Re: How to read the last lines of file? - by dice7 - 27.04.2010, 14:55
Re: How to read the last lines of file? - by SiJ - 27.04.2010, 15:38

Forum Jump:


Users browsing this thread: 3 Guest(s)