I am creating a web interface to enable a user import data from text files into mysql database.

I am wondering if anyone knows whether there is another function to handle text files as what I have seen so far is the fgetcsv() for handling csv file. One other way could be to convert the text files into csv file which I do not want. Is there any other way around this?