This is my question:
Does someone know why fopen call is not working??
Here is my code:
Code: Select all
#include <nds.h>
#incluide <filesystem.h>
#include <stdio.h>
int main(void)
{
consoleDemoInit();
nitroFSInit();
FILE *f = fopen("nitro:/hello_world.txt", "rb");
if (f != NULL)
{
fscanf(f, "%s", str);
printf("%s", str);
}
else
printf("error!");
return 0;
}
TIA