Chapter 4. Working with Files in Groovy
In this chapter, we will cover:
Reading from a file
Reading a text file line by line
Processing every word in a text file
Writing to a file
Replacing tabs with spaces in a text file
Filtering a text file's content
Deleting a file or directory
Walking through a directory recursively
Searching for files
Changing file attributes on Windows
Reading data from a ZIP file
Reading an Excel file
Extracting data from a PDF