FileDocCategorySizeDatePackage
CatStdin.javaAPI DocExample581Sat Nov 25 12:55:26 GMT 2000None

CatStdin

public class CatStdin extends Object
Read and print, using BufferedReader from System.in, onto System.out

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] av)

        CatFile c = new CatFile();
        try {
            BufferedReader is = new BufferedReader(new InputStreamReader(System.in));
            String inputLine;

            while ((inputLine = is.readLine()) != null) {
                System.out.println(inputLine);
            }
            is.close();
        } catch (IOException e) {
            System.out.println("IOException: " + e);
        }