Page 5 of 5

Re: Pico Mounting SD Card

Posted: Mon Sep 26, 2022 1:45 pm
by Roberthh
No. One would use flush() in a sequence of writes to ensure, that all data from the cache has been written, but the file should be kept open for further writes.

Re: Pico Mounting SD Card

Posted: Mon Sep 26, 2022 1:55 pm
by jcf
For my Analog logger project I always use this sequence:
- open file
- write data
- close file.

The idea was to avoid corrupt files.
Is there any inconvenient when doing it like this with an SD card?