Chapter 15. files

A file is a collection of information stored on a computer (which in our case is the NXT). In this chapter, you’ll learn how to use the File Access block to create and use files in your programs. You’ll make some changes to the RedOrBlueCount program to save the number of objects in a data file and then restore the values the next time the program starts. You’ll also learn about managing your NXT’s memory, including how to delete files or transfer them between the NXT and your computer.

using files

Your computer uses files to store music, pictures, programs, word processing documents, and numerous other kinds of information. The NXT also uses files to store many different types of information, such as your programs, the images ...

Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.