hello people i need help on reading a file and parse info inside..
here's a sample
filename: test.txt
inside test.txt
21211|12121|2121|2121
3231|21213|3223|3232
534543|312321|32312|32131
now the way i open the file is like this
$fp = fopen('test.txt', 'r');
while (false !== ($char = fgetc($fp))) { $data .= $char; }
$textMessage = $data;
fclose($fp);
but this is just going to display all..
all i want is to segregate each row and parse each row seperate each field by |
help me with this pls...