gshute.ioutil
Class TextIO

java.lang.Object
  |
  +--gshute.ioutil.TextIO

public class TextIO
extends java.lang.Object

Class TextIO provides utility methods for reading and writing files as strings.


Method Summary
static java.lang.String readText(java.lang.String fname)
          TextIO.readText(fname) the contents of the file named fname as a string.
static void writeText(java.lang.String txt, java.lang.String fname)
          TextIO.writeText(txt, fname) writes txt to the file named fname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readText

public static java.lang.String readText(java.lang.String fname)
                                 throws java.io.IOException
TextIO.readText(fname) the contents of the file named fname as a string.

writeText

public static void writeText(java.lang.String txt,
                             java.lang.String fname)
                      throws java.io.IOException
TextIO.writeText(txt, fname) writes txt to the file named fname.