Assuming we are always passing an instance of a File.

When we use `File.read(file)`, `file` can be either a path to a file as a `string` or of type `File`.