Second program to write text to a file and read the contents of the file, It has been written as I could not find an easy example of writing and reading to a file with the micro:bit. This is an extension to the first program about logging data. This program stores real time data (the… Continue reading micro:bit basic data logging 2
Month: August 2022
micro:bit basic data logging 1
This is a first program to write text to a file and read the contents of the file again There are three parts to writing data to file:– opening the file– writing data– closing the file afterwards Line 3: opening the file The ‘open’ commands says open a file with name “storm.txt”; the w indicates… Continue reading micro:bit basic data logging 1