From 81b558651a3609dd8ac1bc731ae629f85178bab7 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 12 May 2015 13:17:53 +0200 Subject: Week12 Find file --- .../com/camilstaps/findfile/Week12FindFile.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java (limited to 'Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java') diff --git a/Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java b/Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java new file mode 100644 index 0000000..4c59e7e --- /dev/null +++ b/Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2015 Camil Staps + */ +package com.camilstaps.findfile; + +import java.io.IOException; + +/** + * + * @author camilstaps + */ +public class Week12FindFile { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + if (args.length != 2) { + System.err.println("Usage: java Week12FindFile "); + System.exit(-1); + } + + try { + Thread t = new Thread(new FileFinder(args[0], args[1])); + t.start(); + } catch (IOException ex) { + System.err.println(ex.toString()); + } + } + +} -- cgit v1.2.3