🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #29207

Re: FILE I/O

#29207
From: Ross Alexander
Date: Sat, 14 Nov 1987 12:11
12 lines
1226 bytes
Preston Bannister and Matt talk about (to my mind, d*mned baroque) ways
to get the size of a file in the context of the MWC programming environment.

Try stat().  That's what it's for, among other things.  It also works on
Un*x, which to my mind is a far nicer thing to have compatability with than
mushdos.  One trap you are ignoring is: what if the file is a directory?
Nice to have it's attributes, perhaps?

hmmpf grump mutter. (its 5 am and my code *still* doesn't work.  Someone
must pay, and as luck would have it, you two win...)

Ross Alexander @ Athabasca University
Technical Details
Message-ID: <398@auvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!alberta!auvax!rwa
References: <2023@homxc.UUCP> <183@decvax.UUCP> <12361@felix.UUCP> <800@xn.LL.MIT.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!alberta!auvax!rwa
From: rwa@auvax.UUCP (Ross Alexander)
Newsgroups: comp.sys.atari.st
Subject: Re: FILE I/O
Message-ID: <398@auvax.UUCP>
Date: Sat, 14-Nov-87 07:11:03 EST
Article-I.D.: auvax.398
Posted: Sat Nov 14 07:11:03 1987
Date-Received: Mon, 16-Nov-87 03:45:16 EST
References: <2023@homxc.UUCP> <183@decvax.UUCP> <12361@felix.UUCP> <800@xn.LL.MIT.EDU>
Sender: news@auvax.UUCP
Organization: Athabasca U., Alberta, Canada
Lines: 12
Keywords: Mark Williams C, Fseek, fseek
Summary: or you can try this...