Chapter 16. files

In this chapter, you’ll use the File Access block to create and use files in your programs. The information you store in a file is persistent, meaning that it’s still available after your program ends, even if you turn off the EV3. Using files, you can store information from a program and use it later in the same or a different program.

You’ll start by creating a few test programs, and then you’ll alter the MemoryGame program from Chapter 15 to save the high score in a file. Next, you’ll add a menu to the ColorCount program so that you can save the object count for each color in a data file and then restore the values the next time the program starts. You’ll also learn how to manage your EV3’s memory and delete files or transfer ...

Get The Art of LEGO MINDSTORMS EV3 Programming (Full Color) 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.