Path: 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 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