This is an opportunity to show off Groovy’s Collection.inject(Object, Closure). Groovy’s GDK’s File makes reading a file’s contents as a String or as a List of Strings easier than falling off a log.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results