I'm normally a MySQL guy, so dealing with a text file is foreign to me. What I need to do is read a text file on a line by line basis. Each line is a delimited series of entries, in the same order.
Apparently, what I need to do is load the text file with a file() function, so each line is an item in the array. From there, I array_unshift() the first item off the array, explode() it, and parse out what data I need. That much I understand.
What I don't know is how to identify the last line in my file array. Can I use feof() somehow to do this? What test do I use in my while() loop if I can't use feof()?
Any assistance would be appreciated.