Welcome, Guest. Please login or register.

Author Topic: The size of a file  (Read 2135 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Fats

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 672
    • Show all replies
Re: The size of a file
« on: May 03, 2005, 07:59:57 PM »
You can do it in ANSI-C on an open file like this:

fseek(f, 0, SEEK_END);
size = ftell(f);


the conversion to Amiga function calls I leave as an exercise :-)

greets,
Staf.
Trust me...                                              I know what I\'m doing