Category Archives: robotics

How to Create, Read and Write to File with Microbit

Example code to create file, write to it, then display the files. [crayon-663c4df6b17ef460168420-i/] s the [crayon-663c4df6b17fa202155288-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-663c4df6b1800945985019-i/]  ) Lastly, we … Continue reading How to Create, Read and Write to Fi...