concept text file in category java

appears as: text file
Java Testing with Spock

This is an excerpt from Manning's book Java Testing with Spock.

2.4.1. Reading a text file

Reading a text file in Java usually requires a basic understanding of buffered readers or any other Java file API that was added with each new Java version.[11] Groovy does away with all the unneeded craft and allows you to read a file in the simplest way possible:

Figure 5.16. Using a text file as a data source for a parameterized test