July 2018
Intermediate to advanced
242 pages
8h 6m
English
The readText() extension function is returning the String value representing the text of the given file. This is a convenient way of reading the file contents since it wraps the low-level logic of reading bytes from the FileInputStream class. Under the hood, before reading the bytes of the file, the function checks whether the file has the proper size to be stored in memory.
The readText() function can also take the charset: Charset argument, ...
Read now
Unlock full access