Reading and writing file content through Files
In one line: readString and readAllLines load a whole file, Files.lines is lazy and must be closed, and any open option drops default truncation.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.