Mercurial > hg > FederatedLinda
annotate src/fdl/test2/TestRead.java @ 53:629b6cfbd37f
metaprotocol ring
author | axmo |
---|---|
date | Mon, 19 Jan 2009 17:49:14 +0900 |
parents | |
children | 82a292aa41ad |
rev | line source |
---|---|
53 | 1 package fdl.test2; |
2 | |
3 import java.io.*; | |
4 | |
5 public class TestRead { | |
6 | |
7 public static void main(String[] args) { | |
8 try { | |
9 File inputFile = new File(args[0]); | |
10 FileReader in = new FileReader(inputFile); | |
11 BufferedReader br = new BufferedReader(in); | |
12 String line; | |
13 while ((line = br.readLine()) != null) { | |
14 System.out.println(line); | |
15 } | |
16 br.close(); | |
17 in.close(); | |
18 } catch (IOException e) { | |
19 System.out.println(e); | |
20 } | |
21 } | |
22 | |
23 } |