Hi guys,
How can i read a specific line of the text file for example:
user1 : johnson
number of parts1 : 5
number of parts2 : 10
user2 : andy
number of parts1 : 10
number of parts2 : 10
and i want to get the total number of parts1 and parts2 from different users altogether. Here is my code:
Code blocks are created by indenting at least 4 spaces
... and can span multiple lines
if(file_exists($file)) {
$f = fopen($file, 'r');
while(!feof($f)) {
$line = fgets($f);
$oldData = $oldData . $line;
}
$oldData = $oldData . "\r";
fclose($f);
}
Thanks.