thought of another thing! you can also do like this if you want the rows to just contain one value each:
let's say that you want to have some config in the text file... then make it look like this:
bgcolor=#000000
title=Welcome to my site!
etc etc
then do like this do get to it!
<?php
// load the data
$load = file("config.txt");
// count it
$lines = count($load);
// let's loop through the data, and add it to
// the $config array
for($i = 0; $i < $lines; $i++)
{
// explode it!
$data = explode('=',$load[$i]);
// add to the array
$config[$data[0]] = $data[1];
}
// after this, you can access for example bgcolor like this:
// echo $config['bgcolor'];
// let's look at the result!
echo "<pre>\n";
print_r($config);
echo "</pre>\n";
?>