You get a file to an array of lines with file().
Example:
?
$myFile = file(text_file.txt);
// Now $myFile is an array looking like
// [0] = row 1;
// [1] = row 2;
// [2] = row 3;
// .
for ($i = 0; $i count($myFile); $i++)
{
print Row .($i+1).: .$myFile[$i];
};
?
Niklas
Muchos grassy arse...works perfectly
On Mon, 2003-03-03 at 11:06, Niklas Lampén wrote:
You get a file to an array of lines with file().
Example:
?
$myFile = file(text_file.txt);
// Now $myFile is an array looking like
// [0] = row 1;
// [1] = row 2;
// [2] = row 3;
// .
2 matches
Mail list logo