How would I read from a text file

Thanks guys!

I used Russ’ suggestion which works perfectly.

File file = new File("C:\\Users\\devers\\Downloads\\TestFiles\\dave.txt")
String FileContents = file.getText("UTF-8")
println FileContents
1 Like