Although files can be considered containers for data, there are a lot of different types of files. Usually a file is denoted with a suffix, or extension, that hints about the structure of the file. Knowing the structure of a file before processing it, removes any need for guess work.
Some popular formats are ".txt" which would represent a text file, ".csv" a comma separated value file etc.
In this chapter, we'll go over the most popular file formats that are used in data engineering, with a focus on how to manipulate them using Rust.