Click to See Complete Forum and Search --> : reading binary file in windows


rathaji1
04-11-2003, 09:49 AM
Hi,

i trying to Read the binary file,(file created by VB based application) using php. I am getting some other characters in top and bottom as follows. is there any way read it properly

FXArialA  A (,@ ,ٰ ,م ,ِ ,ٗ ,Culture and antibiotic susceptibility test Culture and antibiotic susceptibility test Culture and antibiotic susceptibility test Culture and antibiotic susceptibility test SPECIMEN :URINEGRAM'S STAINING:GRAM'S STAINING:GRAM'S STAINING:GRAM'S STAINING:Occasional epithelial cell, 0 - 1 pus cell/oif, few gram positive cocci in clusters

Mordecai
04-12-2003, 01:47 AM
As fopen() says in the manual, add a b to the open type.
I.e. fopen("test.txt","wb");