Sample File Access - renesas/micropython GitHub Wiki

image

  • Shows the contents of main.py in the default / flash folder.
f = open('main.py','r')
f.read()
f.close()

image

  • Reading and writing to the / flash and / sd filesystems is typically done by calling the MicroPython file I/O library.