Hi again
Heres the deal.
I have a text file, which is constantly having things written to it
example:
the text file is in the form of:
,James:1:
,Kimberley:2:
,Bob:3:
,Joe:4:
,John:5:
every now and again, a new value is inserted into the end of the text file, example, Josh is added:
,James:1:
,Kimberley:2:
,Bob:3:
,Joe:4:
,John:5:
,Josh:6:
However, when this php script is used to add a new value to the end of the text file, and the length of the file is 30 lines long in length, what i want is for the php script to remove the first line, and add the new value to the end, to maintain the 30 line limit
Does anyone know how i could do this?
Thanks.
PS I use Fwrite and Fread to write to the text file.