Posted by HardySpicer on 12/19/07 05:38
I have a text file with 6 colums of data. I need to read it and in
colums 2 and 3 do something to the data. First of all I can read the
file (all of it) or some of it ie one line
<?php
$myFile = "orbit.txt";
$fh = fopen($myFile, 'r');
$theData = fgets($fh);
fclose($fh);
echo $theData;
?>.
and this is ok. How to get to the data in colum 2 and 3 of this thing
called $theData?
Also I need to put a loop around it for i = 0 to end of file (do
something)
as in basic.
regards
Hardy
Navigation:
[Reply to this message]
|