i dont know if anyone is experiencing this, but when I FAT_fopen(..."r") then close it, then FAT_fopen(..."w") dualis seems to crash when i want to write to the file on the DS, i believe that it just freezes on the DS, but that may just be because its having the issues with the writing to begin with, just something that should be looked into perhaps ??? thanks for ur time fixed ds bug, seems like an emu issue what the code looks like.... #include <nds.h>
#include "../../general/command.h"
#include <nds/arm9/console.h> //basic print funcionality
#include <stdio.h>
#include <stdlib.h>
#include <gbfs.h> // filesystem functions
#include "gba_nds_fat/gba_nds_fat.h"
FAT_FILE *fps;
int main(void)
{
//irqs are nice
lcdMainOnBottom();
FAT_InitFiles();
fps = FAT_fopen("a.txt","r");
FAT_fclose(fps);
fps = FAT_fopen("a.txt","w");
int wasWritten = FAT_fwrite("0",1, 1, fps);
FAT_fclose(fps);
}