Jump to content

Simple script help


danx30

Recommended Posts

I need a simple script that reads a .txt file, prints the first line, then deletes that line from the .txt file.

 

The .txt file will have multiple lines, so when the page is opened I see the first line, then when I refresh that line is gone and it prints the next line.  I have looked and looked and can't seem to come up with a way to do it.  Any help would be appreciated.

 

Thanks,

Dan

Link to comment
https://forums.phpfreaks.com/topic/38598-simple-script-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.