🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #320

Re: Turbo C File Size Routines:

#320
From: John Weeks
Date: Thu, 12 Apr 1990 21:28
17 lines
1279 bytes
In article <26201F3B.1118@maccs.dcss.mcmaster.ca> cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) writes:
>
>   Well, I don't know if TC provides a function to determine the length
>of the file,

There is a function in TC to determine the length of a file based on the
file handle.  Its something like getfilesize(), and returns the size in bytes
as a long.  If you opened the file with fopen(), there is a function to 
get the handle for the file, again I don't remember exactly what the function
name is, something like gethandle() or filehandle() :-).

Hope this helps.
-- 

John Weeks                                    Phone:  (402) 291-8300
Sterling Software FSG/IMD        e-mail: uunet!ssbell!weeks
1404 Ft. Crook Rd. South         e-mail: weeks@ssbell.IMD.Sterling.COM
Technical Details
Message-ID: <682@ssbell.IMD.Sterling.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ssbell!weeks
References: <3263@bingvaxu.cc.binghamton.edu> <26201F3B.1118@maccs.dcss.mcmaster.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!ssbell!weeks
From: weeks@ssbell.IMD.Sterling.COM (John Weeks)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Turbo C File Size Routines:
Message-ID: <682@ssbell.IMD.Sterling.COM>
Date: 12 Apr 90 21:28:47 GMT
References: <3263@bingvaxu.cc.binghamton.edu> <26201F3B.1118@maccs.dcss.mcmaster.ca>
Followup-To: comp.sys.ibm.pc.programmer
Organization: Sterling Software, FSG-IMD, Bellevue, NE.
Lines: 17