PROBLEM


I get 'attribute error' when trying to use the file system.

I can't get the Python filing system to work.

How do I use files with MicroPython?


CAUSE


If you are using the MicroPython editor on the BBC website, please note that the current version of MicroPython built inside that editor does not have the file system feature included.


SOLUTION


A. Head on over to codewith.mu and get the latest Mu editor for your platform.


B. If you don't want to download anything to the computer you are using, then the version of Python found at http://microbit.org also has the file system built into it here: http://python.microbit.org


There is a Python tutorial about the filing system here: http://microbit-micropython.readthedocs.io/en/latest/filesystem.html


LAST REVIEWED

06 NOV 2016