Hi All,
I am trying to create an array from a text file that I will process and
rewrite in a new format. My question is, is it possible to read the
file
in one line at a time and then separate the tab-delimited fields and
finally rewrite the new file?
The fields are tab delimited and here is what I have attempted in code:
$lines = fopen("oldfile.txt", "r");
$newfields = explode("\t", $lines);
echo $newquotes[0];
I get a Resource ID #1 when I echo the line.
Thanks,
-Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php