a tab delimited file has a number of this char in each line:
$char = "\t";
a comma delimited file has number of this char in each:
$char = ",";
But comma delimited can also often be:
$char = '","'; // doublequote-comma-doublequote
it is not very difficult to read file line-by-line
and find out how many of those chars is in a line
Such file read functions useful are [man]fgets/man and [man]file/man
- fgets() read one line, so you use a while() loop to get them all
- file() reads in all the lines and put them in an array() of lines
.. then you can loop this array() with foreach()