Date: Mon, 12 Feb 1996 15:03:34 +0300 (MSK) From: "Alexander V. Lukyanov" To: bradtech AT i-link DOT net, djgpp AT delorie DOT com Subject: Re: v2b5 > From: bradtech AT i-link DOT net (Brad Burgan) > Date: Tue, 06 Feb 1996 15:09:33 GMT > if (stat(argv[1], &sbuf) != 0) > { > printf("\n"); > printf("There was an error reading the file's size...\n"); > exit(1); > } > > ulong bufsize = sbuf.st_size; > > printf("\nfilesize = %lu\n", sbuf.st_size); > } > // [end of file] > > this program works for files on my hard drive, but not for a networked > drive. I heard that this might be a bug with Windows 95, but then why > is my dos file manager (Norton Commander v2) able to read the file's > size when this program cannot? I don't understand. Please help. I had similar problem with beta4, but it has been fixed in beta5. Make sure you are using library from beta5 or (better) download the final release. If this does not help, tell what the program prints, "there was an error" or "filesize=", and which network drive are you using (Netware, MSNet, Samba etc...)