This is just a simple tutorial, i wont provide any pbps or any sources or makefiles, this is just a simple tutorial to teach how to delete a file.
Lets initialize our pointer and our file int.
Code:
char *File = "ms0:/file.txt";
int FileInt;
We open it:
Code:
FileInt = sceIoOpen(File, PSP_O_WRONLY | PSP_O_TRUNC, 0777);
Then we close it and remove it.
Code:
// initialization of the pointer used to point the file
char *File = "ms0:/file.txt";
// initialization of the integer that will handle the opening operation
int FileInt;
// we open the file here
FileInt = sceIoOpen(File, PSP_O_WRONLY | PSP_O_TRUNC, 0777);
sceIoClose(FileInt); /* we must close the file INTEGER NOT POINTER
before the removing it so it can delete the file, otherwise it wouldn't delete */
sceIoRemove(File); // Removes the file/path not the int
Finished.
Simple code, it wont work if you dont use it in your code.
Code:
sceIoClose(FileInt); /* we must close the file INTEGER NOT POINTER
before the removing it so it can delete the file, otherwise it wouldn't delete */
sceIoRemove(File); // Removes the file/path not the int