Category Archives: microbit

How to Create, Read and Write to File with Microbit

Example code to create file, write to it, then display the files. [crayon-6822684b8baa9501270402-i/] s the [crayon-6822684b8bab1682620161-i/] library for working with files Opens (or creates if doesn’t’ exist) a file called “foo.txt” Then it writes the text “hello world” to the text file We then do a quick loop to concatenate all the files listed ([crayon-6822684b8bab3908354676-i/]  ) Lastly, we … Continue reading How to Create, Read and Write to Fi...