view src/fdl/test2/TestRead.java @ 53:629b6cfbd37f

metaprotocol ring
author axmo
date Mon, 19 Jan 2009 17:49:14 +0900
parents
children 82a292aa41ad
line wrap: on
line source

package fdl.test2;

import java.io.*;

public class TestRead {

	    public static void main(String[] args) {
	        try {
	        	File inputFile = new File(args[0]);
	        	FileReader in = new FileReader(inputFile);
	            BufferedReader br = new BufferedReader(in);
	            String line;
	            while ((line = br.readLine()) != null) {
	                System.out.println(line);
	            }
	            br.close();
	            in.close();
	        } catch (IOException e) {
	            System.out.println(e);
	        }
	    }

}