Re: [PHP] Read and write

2001-07-13 Thread news.php.net
But I read in binary! -- --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- François Boucher [EMAIL PROTECTED] ___ _ ( hello... ) Q _/\ __/ ¸L --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- >Put quotes around "rb", but I don't think you need the b. > >Also,

Re: [PHP] Read and write

2001-07-13 Thread Chris Lambert - WhiteCrown Networks
Boucher <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 13, 2001 7:55 AM Subject: [PHP] Read and write | 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 cara

[PHP] Read and write

2001-07-13 Thread Francois Boucher
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[] =