© James R. Strickland 2018
James R. StricklandRaspberry Pi for Arduino Usershttps://doi.org/10.1007/978-1-4842-3414-3_11

11. Files and Filesystems

James R. Strickland1 
(1)
Highlands Ranch, Colorado, USA
 

In case it wasn’t obvious by now, UNIX-like operating systems are all about files. Files are one of the great strengths of the Raspberry Pi platform and are very difficult (but not impossible) to do with an Arduino. Files allow you to store data, and lots of it, with only a little code. We’re going to discuss files and filesystems in Raspbian Linux a bit, and then add a second storage device (a USB flash drive) to the system and read and write some files on it.

Files

Conceptually, a file is a stream of data with a beginning and an end. You open the ...

Get Raspberry Pi for Arduino Users: Building IoT and Network Applications and Devices 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.