Hi there,
I have a text file that I need to read backwards from, and then print to the screen. This is for a news page, and as-is, new items are added to the bottom. This is bad. I tried several ways of adding new items to the top of the file, but that just wasn't working out. Reading backwards is, as far as I can tell, the way to go. But I'm not really sure where to start; the array_reverse docs sure weren't written with delimited text files in mind, as far as I can tell. My setup is like so:
item1:item2:item3
item1:item2:item3
item1:item2:item3
item1:item2:item3
item1:item2:item3
item1:item2:item3
If you could just outright tell me how to read from that file in reverse and then print it (in that order), I'd be ecstatic.