Sample File Access - renesas/micropython GitHub Wiki

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

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