Boron Filesystem: readline or get line for file reads

I attempting to make use of the filesystem on the Boron to store data where the device couldn't upload and reprocess when it gets connectivity.

Following the documentation using open, read, and write. I assume I need to null terminate '\0' strings or add '\r\n' to them before the write?

I figured there might be a library that made this type of IO easier but my search-fu is failing me.

Thanks for your time,
bill

Hi! I would bet that you need to properly terminate the c strings with their classic null terminator \0

One thing to remember: I got in a nasty situation when my file did nto include a folder indicator at the beginning (a slash).
Examples:

int fd = open("/FileSystemTest/thisIsOk.txt", O_RDWR | O_CREAT | O_TRUNC);

int fd = open("/thisToo.txt", O_RDWR | O_CREAT | O_TRUNC);

int fd = open("DONOTDOTHISTOYOURSELF.txt", O_RDWR | O_CREAT | O_TRUNC);

cheers