Class SimpleIO

java.lang.Object
   |
   +----SimpleIO

public final class SimpleIO
extends Object
Class for Simple IO operations.

Version:
$Id: SimpleIO.java,v 1.2 2000-01-31 11:25:56+09 kaiya Exp $
Author:
kaiya@acm.org

Variable Index

 o endl
constant symbol for newline.

Method Index

 o print(String)
print string s without newline.
 o println(String)
print string s with newline.
 o readfile(String)
read string from file "s".
 o readln(String)
read string from standard input with prompt "msg".
 o string2int(String)
convert string to integer.
 o writefile(String, String)
wirte string a to file f.

Variables

 o endl
 public static final String endl
constant symbol for newline.

Methods

 o string2int
 public static int string2int(String s)
convert string to integer. If can not parse "s", return 0.

 o readln
 public static String readln(String msg)
read string from standard input with prompt "msg". If "msg" == null, without prompt. Return null if fail.

 o readfile
 public static String readfile(String s)
read string from file "s". return null if fail.

 o writefile
 public static boolean writefile(String a,
                                 String f)
wirte string a to file f. return false if fail.

 o println
 public static void println(String s)
print string s with newline.

 o print
 public static void print(String s)
print string s without newline.