As chronozphere has said, you will need a library for that. Better, a small library, because the small amount of memory on the DS. In any case, fpc can r/w files on the DS, by using the libfat library, that is shipped with libndsfpc.
Get your fpc4gba copy now! Get your fpc4nds copy now!
Bookmarks