R
Rainer Weikusat
George Mpouras said:the last character is missing
*YYYYMMDD* *12*
Nope. The last character in the file is a \n and that's not supposed to
be part of the $count value
------------
system('echo 20140403 100 >/tmp/x');
open($fh, '<', '/tmp/x');
$date=substr($_,0,-2-length($count=substr($_,rindex($_,' ')+1,-1)))for<$fh>;
printf("'%s', '%s'\n", $date, $count);
------------