home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3634 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: yama.mcc.ac.uk!dmu!usenet
  2. From: Timothy Eves <se1te@dmu.ac.uk>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: File sizes
  5. Date: Thu, 22 Feb 1996 17:58:37 +0000
  6. Organization: De Montfort Univerity
  7. Message-ID: <312CAECD.52F9@dmu.ac.uk>
  8. References: <4gd9pu$cpr@mn5.swip.net> <WXQ7y*5+f@yaps.rhein.de>
  9. NNTP-Posting-Host: birch.cms.dmu.ac.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
  14.  
  15. This might not be the best way but an alternative is too open the file,
  16. do a seek to the begining and then to end and the value returned from
  17. the second seek will be the length of the file.
  18.  
  19. Note:  You might not need the first seek, but I can't remember wether
  20. the file pointer returned by seek is relative or absolute.
  21.  
  22. -- 
  23. ------------------------------------------------------------O----------------    
  24. Out of the gloom came a voice, "Smile  and  be  happy things| EMail To:
  25. could  be  worse",  it  said.  So I smiled and I was  happy,|
  26. se1te@dmu.ac.uk
  27. and  behold  things  did  get worse.                |
  28. ------------------------------------------------------------O----------------
  29.