-
ANSI-compatible equivalent of _filelength
_filelength is a WinNT and Win9x compatible function which
returns the length of a file. GetFileSize is a Windows API
function which returns the size of a file. Is there an
ANSI-compatible function which does the same thing?
Travis Hall
-
Re: ANSI-compatible equivalent of _filelength
ANSI C doesn't define an equivalent function. The problem is that the
concept of a file is platform specific. On some OS's, a terminal, a
keyboard and a modem are all files. Trying to take their size doesn't
make sense. Therefore, this function is not universally supported.
Danny Kalev
"The ANSI/ISO C++ Professional Programmer's Handbook"
http://www.amazon.com/exec/obidos/ASIN/0789720221
Please reply to the newsgroup.
Travis Hall wrote:
>
> _filelength is a WinNT and Win9x compatible function which
> returns the length of a file. GetFileSize is a Windows API
> function which returns the size of a file. Is there an
> ANSI-compatible function which does the same thing?
>
> Travis Hall
-
Re: ANSI-compatible equivalent of _filelength
Danny Kalev <dannykk@inter.net.il> wrote:
[regarding ANSI file size function]
>ANSI C doesn't define an equivalent function. The problem is that the
>concept of a file is platform specific. On some OS's, a terminal, a
>keyboard and a modem are all files. Trying to take their size doesn't
>make sense. Therefore, this function is not universally supported.
I figured that would be the case. Doesn't hurt to ask, though.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|