Explore the basics of text data manipulation. Learn techniques to read and write files efficiently, delving into line-by-line and character-by-character parsing to build a strong foundation in handling textual data using Go.
Overview
Syllabus
- Unit 1: Reading Text Files in Go
- Reading Files Effortlessly in Go
- Using the ReadFile Method
- Creating and Reading a Text File
- Master Reading and Displaying Files
- Unit 2: Reading Text Files Line-by-Line in Go
- Reading the First Line Only
- Summing Numbers from a File
- Compute Average Temperature from File
- Reading and Sorting File Data
- Unit 3: Reading Files in Go with bufio and os Packages
- Reading the First Character in Go
- Reading Text Files in Go
- Sequential File Reading with Go
- Master File Reading in Go
- Unit 4: Writing and Appending Text to Files in Go
- Read and Write with Go Files
- Writing an API Key to File
- File Writing and Appending in Go
- Calculate and Write Sum to File