Message-ID: <001201c2bb23$a57a4b60$7000a8c0@edd> From: "Edd \"HotCakes\" Dawson" To: References: <200301070413 DOT 12292 DOT deemus AT rambler DOT ru> Subject: Re: File reading problem Date: Mon, 13 Jan 2003 16:48:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-VSMLoop: planetquake.com Reply-To: djgpp AT delorie DOT com Hi, f = fopen (argv [1], "rb"); instead of f = fopen (argv [1], "r"); Edd ----- Original Message ----- From: "Dmitry Rutsky" Newsgroups: comp.os.msdos.djgpp To: 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