© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
T. LaversLearn to Program with Kotlinhttps://doi.org/10.1007/978-1-4842-6815-5_9

9. The File System

Tim Lavers1  
(1)
Woonona, NSW, Australia
 

Computers can store information on a wide variety of hardware, such as magnetic disks, thumb drives, optical drives, and so on. To save programmers from having to write code that is specific to each storage device, operating systems present an abstraction called the file system . In turn, Kotlin provides us with the tools we need in order to be able to explore the files on a computer and read and write information. In this chapter, we will make use of some of these tools to read and write text files.

In this chapter, we ...

Get Learn to Program with Kotlin: From the Basics to Projects with Text and Image Processing 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.