TextWriter.kl

Types

TextWriter (object)

バージョン 1.12.0 で追加.

The TextWriter is used to write ascii data to files.

参考

TextReader

/*
** Example: TextWriter
*/

require FileIO;
  
operator entry() {

      FilePath path = FilePath('${TEMP}/textWriter.txt').expandEnvVars();
      {
        TextWriter writer = TextWriter(path.string());
        writer.writeLine("Fabric");
        writer.writeLine("Engine");
        writer.writeLine("FileIO");
        writer.writeLine("Extension");
        report('Ascii file written.');
      }
  
}

/*
** Output:

Ascii file written.

*/

Methods

  TextWriter ( in String filePath )
  TextWriter ( in TextWriter other )
  TextWriter ()
TextWriter clone ? ()
Boolean close ! ()
Boolean isOpen ? ()
Boolean open ! ( in String filePath )
  write ! ( in String text )
  writeLine ! ( in String text )
  ~TextWriter ()