< Back

Contents

FilesUtil

Helper class to write and read files.

Example:

// include filesutil.groovy

String filetext = "Some text";
FilesUtil.write(filetext, new File("my_file.txt"));

// Read
String filetextRead = FilesUtil.read(new File("my_file.text"));