File system usage for persistent data

Hi all,

I want to save persistent data into the local filesystem of an MSP32 running under Mongoose OS.
Does anybody have an small example in C for this simple file handling?
Normally you have to init the filesystem and then you can open the file in write mode, write on it and close it again.

Thanks a lot in Advance!
Rolf

You just use “fopen”, “fread”, “fwrite” and “fclose” with standard C calls. Nothing special here. The only thing is: there is no folder structure. So you may write to “/” or to e.g. “/mnt” if you have mounted an additional filesystem. You’ll find more info here and there.

Thanks a lot, it’s working!
Sometimes I think too much and overlook the simple things …