import java.io.*;
import javagently.*;

class SaveaLabel {
/* Label saving program 	  by J M Bishop  revised Dec 1996
 * --------------------           Java 1.1
   Prints a single label to a file.
   Illustrates file declarations and writing
   to a file and the screen in the same program. */

  public static void main (String [] args) throws IOException {

    PrintWriter fout = Text.create("label.out");

      System.out.println ("Printing the label to label.out");
      fout.println ("---------------------------");
      fout.println ("|                         |");
      fout.println ("|  Ms Mary Brown          |");
      fout.println ("|  33 Charles Street      |");
      fout.println ("|  Brooklyn               |");
      fout.println ("|                         |");
      fout.println ("---------------------------");
      fout.close();
      System.out.println ("Program finished");

  }
}

