diff options
author | Camil Staps | 2015-05-12 13:17:53 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-12 13:17:53 +0200 |
commit | 81b558651a3609dd8ac1bc731ae629f85178bab7 (patch) | |
tree | a22772e6a1692399fab84b03bc0baf0085e96550 /Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java | |
parent | tarball week11 (diff) |
Week12 Find file
Diffstat (limited to 'Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java')
-rw-r--r-- | Week12 Find File/src/com/camilstaps/findfile/Week12FindFile.java | 31 |
1 files changed, 31 insertions, 0 deletions
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 <searchdir> <filename>"); + System.exit(-1); + } + + try { + Thread t = new Thread(new FileFinder(args[0], args[1])); + t.start(); + } catch (IOException ex) { + System.err.println(ex.toString()); + } + } + +} |