FileDocCategorySizeDatePackage
InputFile.javaAPI DocExample624Tue Dec 12 18:57:38 GMT 2000None

InputFile

public class InputFile extends Object

Fields Summary
private FileInputStream
in
Constructors Summary
public InputFile(String filename)

        in = new FileInputStream(filename);
    
Methods Summary
public java.lang.StringgetWord()

        int c;
        StringBuffer buf = new StringBuffer();

        do {
            c = in.read();
            if (Character.isSpace((char)c))
                return buf.toString();
            else
                buf.append((char)c);
        } while (c != -1);

	return buf.toString();