Date: Sun, 16 Feb 1997 15:13:18 -0600 (CST) From: "Mr. Fuju" Subject: File sizes... To: djgpp AT delorie DOT com Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT If I use open () to open an existing file, how do I determine the filesize? I am not attaching the file to a stream. Here is my code: ---------------- cut here ------------------- #include #include int file1; // file descriptors long filesize; void main (void) { file1 = open ("test.file", O_RDWR | O_CREAT, 0600); // filesize is set here... close (file1); }