|
|
| What is the File Access block for? |
| (7 ) |
85%
14%
|
This block (located in the 'Advanced' section in the 'complete palette' tab on the left side of the screen) is used to write and read files on the NXT. The button has four functions: read, write, close and delete. In the following example, we will write to a file, and then read from the same file.


Above, the first block writes to the file “MyFile” the text “Hello World!” The second block closes the file (something that needs to be done every time a file is written to) and the third block reads the file and then directs it to the NXT display. You can also use this block to record data to the NXT to upload onto a computer later on.
|