Archive for November 19th, 2005



public class Tail { public static void main(String[] args) throws IOException { Reader fileReader = new FileReader(args[0]); BufferedReader input = new BufferedReader(fileReader); String line = null; while (true) { if ((line = input.readLine()) != null) { System.out.println(line); continue; } try { Thread.sleep(1000L); } catch (InterruptedException x) { Thread.currentThread().interrupt(); break; } } input.close(); } } Easy [...]




About

You are currently browsing the NewInstance weblog archives for the day Saturday, November 19th, 2005.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Calendar

November 2005
M T W T F S S
« Oct   Dec »
 123456
78910111213
14151617181920
21222324252627
282930  

Follow me

twitter flickr LinkedIn feed

Enter your email address:

Archives


Categories

Tag Cloud