forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File size

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
TheMan



Joined: 03 Jan 2006
Posts: 10

PostPosted: Fri Jun 23, 2006 4:42 am    Post subject: File size Reply with quote

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
View user's profile Send private message
hitchhikr



Joined: 04 Feb 2006
Posts: 83

PostPosted: Fri Jun 23, 2006 5:19 am    Post subject: Reply with quote

Code:

   int File_Size;
   FILE *fInput;

   fseek(fInput, 0, SEEK_END);
   File_Size = ftell(fInput);
   fseek(fInput, 0, SEEK_SET);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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