How to read a file in Groovy into a string?

I need to read a file from the file system and load the entire contents into a string in a groovy controller, what’s the easiest way to do that?

6 Answers
6

Leave a Comment