July 2018
Intermediate to advanced
242 pages
8h 6m
English
As a result of executing the preceding code, a new temp_file file is going to be created under the src/main/resources directory, and its content is going to be printed out to the console:
"A language that doesn’t affect the way you think about programming is worth knowing."Alan Perlis
The appendText() and appendBytes() functions wrap the java.io.FileOutputStream API, providing a neat way of appending content to the file. Under the hood, they access FileOutputStream inside the use() function, so you can be sure that it autocloses any streams that are opened during the write operation.
Read now
Unlock full access