Reading and Writing to Files

Understand how reading and writing to a file works in Go.

The most common scenario in DevOps tooling is the need to manipulate files: reading, writing, reformatting, or analyzing the data in those files. These files could be in many formats – JSON, YAML, XML, CSV, and others that are probably familiar to us. They are used to configure both local services and to interact with our cloud network provider.

In this lesson, we’ll cover the basics of reading and writing entire files.

Get hands-on with 1200+ tech skills courses.