Author: Shaun Favell (213.122.38.194)
Date: 2001-11-06 16:42:42
If I use the file() command to read lines of a file, each line is returned by the line break function attached. This is causing me a problem with something like this
$stuff = file("./somefile.data");
while (n < 50)
{
$details = file("./$stuff($n).data");
$n++;
}
because $stuff has a line break after it and the file cannot be read to details[]
ie it tries to read filecontents .data rather than filecontents.data so an error occurs reading the file
how can I stop this?