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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access