fopen/open vs sceIoOpen

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

fopen/open vs sceIoOpen

Post by pspZorba »

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 !
FreePlay
Posts: 71
Joined: Wed Jan 04, 2006 6:53 pm
Location: Schenectady, New York, USA

Post by FreePlay »

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.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

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.
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

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 !
Post Reply