# Reading a File

How to read a CSV file line by line with a \`Scanner\` and turn each line into an object in a list.

![Cheat sheet: Reading a File](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/55f4e6a943de43aa98960e22d9691cbe.webp)

- Category: Java
- Level: Apprentice
- Tags: java
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/reading-a-file-cheat-sheet
