Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

FileMethods

FileMethods contains one-liner utility methods mainly for reading and writing files. To view the javadocs go here

These are the different ways of using FileMethods:

Using Gloovy Step file method gloovy step Using Invoke Code Step file method invoke step

Using Gloovy Step coder file method gloovy step Using Invoke Code Step coder file method invoke step

1
2
3
4
5
  public void writeFileSample() {
    def message = "hello there!"
    def bytes = message.getBytes()
    bytes.write("packages/OneLinersSample/resources/sample-write.txt", true);
  }