 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
TheMan
Joined: 03 Jan 2006 Posts: 10
|
Posted: Fri Jun 23, 2006 4:42 am Post subject: File size |
|
|
| I've been attempting to figure out how to find the file size of a file using C. I've been searching around here, and on google, but to no avail. Could anyone help me out? I'm completely lost. |
|
| Back to top |
|
 |
hitchhikr
Joined: 04 Feb 2006 Posts: 83
|
Posted: Fri Jun 23, 2006 5:19 am Post subject: |
|
|
| Code: |
int File_Size;
FILE *fInput;
fseek(fInput, 0, SEEK_END);
File_Size = ftell(fInput);
fseek(fInput, 0, SEEK_SET);
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|