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 Scala.
Overview
Syllabus
- Unit 1: Reading Text Files in Scala with os-lib
- Defining Relative File Path with os.pwd
- Reading and Displaying Text File Contents with os-lib
- Creating File to Read with Scala
- Complete File Reading with os-lib
- Unit 2: Reading Files Line-by-Line in Scala
- Reading the First Line from a File
- Reading Numbers from a File and Calculating Their Sum
- Reading and Calculating Average Temperature from a File
- Reading and Sorting Names from a File
- Unit 3: Reading Files Character-by-Character with InputStream
- Reading the First Character of a File
- Reading the First 100 Characters of a File
- Sequential File Reading with os-lib
- Managing InputStream to Read a File
- Unit 4: Writing and Appending to Files in Scala
- Enhancing File Handling by Reading and Writing Data
- Writing an API Key to a File Using os-lib
- Appending Names to an Existent File
- Reading Numbers from a File and Writing Their Sum