Introduction
File.read lets you open a file and get all its content as one string. This is useful when you want to work with the whole file at once.
You want to read a text file and show its content on the screen.
You need to load a configuration file to use its settings in your program.
You want to read a small data file to process all data at once.
You are making a program that counts words or lines in a file.