Mail Archives: djgpp/2003/01/13/11:44:57
Hi,
f = fopen (argv [1], "rb");
instead of
f = fopen (argv [1], "r");
Edd
----- Original Message -----
From: "Dmitry Rutsky" <deemus AT rambler DOT ru>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Tuesday, January 07, 2003 1:13 AM
Subject: File reading problem
Hello.
Why doesn't the included program work correctly? It is supposed to
determine
file sizes by dumb method, and does it under Linux. But when I tried it
with
the latest DJGPP, both in DOSEmu and Windows 2000, it gave wrong numbers
for
almost any files. I've discovered this problem when I tried to test the
abilities of DJGPP by entertaining with my old school project, a Huffman
file
archiver. It worked fine under Linux, but cannot work at all under DJGPP.
--- Dmitry Rutsky
- Raw text -