Overview of File IO¶
Let us get an overview of File IO. Files are typically saved in hard drive and we need to perform file i/o to read the data from the files into memory as objects. Here are the commom operations related to files.
- Read the data from the files into objects (typically collections).
- Write the data in the collections into files.
Here are the common file formats we use for both reading as well as writing.
- Text Files
- Parquet
- Binary
Here are some of the common specific file format we use with in text files.
- Files with delimited or separated values. The most common delimiter or separator is comma. However, we might even use other delimiters such as pipe, cap (shift + 6), Ascii null, Ascii tab character etc.
- JSON Files – we will get into the details about JSON files at a later point in time.
{note}
Let us deep dive into how we can perform common File I/O Operations using first class python functions such as `open`, `read`, `write`, etc.