I need to read a file that has data records in it. Each field is on a seperate line and can be of a variable length.
ie.
Title1 Description1xxxxxxx Title2000 Description2000xxxxxxxxxxxxxx
How can I read the data in each line.
use fgets()
I prefer to use the file() function. It breaks every line into an array element and sounds exactly like what you'll need.