Welcome, Guest. Please login or register.

Author Topic: OS call to get file size  (Read 2733 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DariusB

  • Newbie
  • *
  • Join Date: Jun 2005
  • Posts: 8
    • Show all replies
    • http://people.freenet.de/dariusb/
Re: OS call to get file size
« on: January 28, 2006, 09:30:04 PM »
a other method i used a lot is a double call of Seek(), it returns the postition of the last i/o call

Seek(filehd, 0, OFFSET_END);
len = Seek(filehd, 0, OFFSET_BEGINNING);

the 1st seeks to the end of the file so the 2nd call returns the position of the last dos i/o