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 Rust.
Overview
Syllabus
- Unit 1: Reading Text Files in Rust: A Beginner's Guide
- Reading and Displaying File Contents
- Reading and Displaying Text File Contents
- Reading and Displaying File Contents
- Reading and Displaying File Contents
- Unit 2: Reading Files Line-by-Line in Rust
- Reading and Printing the First Line from a File
- Reading a File Line-by-Line and Printing Each Line
- Reading Temperatures from a File and Calculating the Average
- Sorting Names from a File
- Unit 3: Reading Files in Rust: Byte-by-Byte Techniques
- Reading the First Byte from a File
- Reading the First 100 Bytes from a File and Appending Ellipsis
- Reading Specific Portions from a File
- Reading Specific Portions of a Text File Using BufReader
- Unit 4: Writing and Appending Text Files in Rust
- File I/O Enhancement with Random Number Verification
- Writing API Key to a File Using Standard Library
- Appending Names to a File Using Buffered Writing
- Reading Numbers from a File and Writing Their Sum to Another File