I need to read in a binary file.
(the file is write in c++ and contain integer, interger,char(10),char(10) )

So I need to read this and write it in normal caracters.

So I try:
 $fp = fopen("data_bin.dat",rb);
 $data[] = fread($fp,4);
 $data[] = fread($fp,4);
 $data[] = fread($fp,10);
 $data[] = fread($fp,10);

but i think it wrong...

Thanks.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=           François Boucher              =-
-=      [EMAIL PROTECTED]         =-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to