Mail Archives: djgpp/1997/06/18/15:11:37
Javier Loureiro Varela wrote:
> I open my file using:
>
> file = fopen(argv[1], "r");
>
> If I use _read(), it seems to work, but I need to use fread...
>
> Any suggestion?
Your description is a little brief, but it sounds like you're trying to
read a binary file. In that case you should open it as binary:
file = fopen(argv[1], "rb");
--
Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"Covenants without the sword / are but words."
/ Camden
- Raw text -