Datasheet

Notice the a option in the open function--this tells Python to add data at the end of the file instead of erasing it and
starting over at the top. Try reading the file with the code above to see the new line that was added!
That's all there is to manipulating files on microSD cards with CircuitPython!
Here are a few more complete examples of using a SD card from the Trinket M0 CircuitPython guides. These are
great as a reference for more SD card usage.
List Files
Load this into main.py:
with open("/sd/test.txt", "a") as f:
f.write("This is another line!\r\n")
© Adafruit Industries https://learn.adafruit.com/adafruit-adalogger-featherwing Page 31 of 36