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 

fopen/open vs sceIoOpen

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



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Fri Dec 21, 2007 10:23 pm    Post subject: fopen/open vs sceIoOpen Reply with quote

Hi all,

I have to access to a file on ms0, I saw that I can use the fopen/open C-functions or sceIoOpen .

Are they any avantages to use one or the other ?

thx for your help.
_________________
--pspZorba--
NO to K1.5 !
Back to top
View user's profile Send private message
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Fri Dec 21, 2007 10:38 pm    Post subject: Reply with quote

In my experience the sceIo functions are, for whatever reason, significantly faster than the standard C functions. Last time I checked was when I wrote a program capable of installing multiple custom firmwares. For both reading the DXAR file (a semi-compressed archive of all the files in the firmware) and writing the files onto the NAND chip, sceIo proved to be much faster.
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Fri Dec 21, 2007 10:50 pm    Post subject: Reply with quote

open and fopen are implemented calling sceIoOpen... and really with sceIo* you have all needed.

The advantages of open and fopen is to make your code more portable.
Back to top
View user's profile Send private message
pspZorba



Joined: 22 Sep 2007
Posts: 156
Location: NY

PostPosted: Sat Dec 22, 2007 2:24 am    Post subject: Reply with quote

Thank you guys for your answers. In fact that's what I feared having the choice between efficiency and portability....

I think I am gonna chose the efficiency.
_________________
--pspZorba--
NO to K1.5 !
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