Code: Select all
//open file and start reading
fdin = sceIoOpen(filename, PSP_O_RDONLY, 0777);
if(fdin >= 0)
{
printf("File opened %s\n", filename);
char ID[2];
unsigned int chunksize = 1;
int bytes_read = 1;
bytes_read = sceIoRead(fdin, ID, sizeof(ID));
printf("Number of read bytes: %i\n", bytes_read);
printf("ID: %s\n", ID);
bytes_read = sceIoRead(fdin, chunksize, sizeof(chunksize));
printf("Number of read bytes: %i\n", bytes_read);
printf("ID: %i\n", chunksize);
}
else
{
printf("Couldn't open %s\n", filename);
}
I'm kind of a newbie, so apologies for asking such a newbie question.
Any help would be appreciated,
Cheers.