Gweedo
03-01-2001, 12:04 AM
How do I get a file's size?
for example:
int size;
size= get file's size
Thanks,
Mike
for example:
int size;
size= get file's size
Thanks,
Mike
|
Click to See Complete Forum and Search --> : File length C/C++ question Gweedo 03-01-2001, 12:04 AM How do I get a file's size? for example: int size; size= get file's size Thanks, Mike Strike 03-01-2001, 12:38 AM Check out TheLinuxDuck and kmj's Catalogued Collection of Annotated Examples (http://www.geocities.com/bfkester/ccae.html) f'lar 03-01-2001, 01:13 AM seekg(ios::end), then there's another function that tells you your current position , ie it returns ios::cur, but I don't remember what it is. Energon 03-01-2001, 01:58 AM tellg() is the function you're thinking of, but I forget what it's attached to... jemfinch 03-01-2001, 08:48 AM In c, you use stat(2). Jeremy justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |