TextReader is a reader class that allows you to read data from text files.

ParameterTypeDefaultDescription
fileUnion[Path, IO[Any]]RequiredPath to text file or file-like object containing text content