I work in testing and I have a CSV file containing all the tests I use (Several thousand). Amongst other things, the tests have a status and I need to extract the tests out, edit them with some find/replace work and put it all back together into a batch file to run the ones that are not yet run.
Anyway, I have got as far as
Code: Select all
<?PHP
$filename = 'E:\Testing\testresults\dnt3.csv';
$fp = fopen($filename, "r");
$contents = fread($fp, filesize($filename));
fclose($fp);
echo $contents;
?>Anyone point me in the direction of a function I could make use of to split it into lines?
Cheers guys - LinkJames