From 57fb2b9773d96777ba343e28e5e2ae4d6fa96f42 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 10 Apr 2018 00:12:24 +0200 Subject: [website] Whoops we had 2 copies of usage_examples. Fixed that by deleting the one that was NOT being used for the website. --- usage_examples/CleanupExample_post.jpage | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 usage_examples/CleanupExample_post.jpage (limited to 'usage_examples/CleanupExample_post.jpage') diff --git a/usage_examples/CleanupExample_post.jpage b/usage_examples/CleanupExample_post.jpage deleted file mode 100644 index 7e87c153..00000000 --- a/usage_examples/CleanupExample_post.jpage +++ /dev/null @@ -1,26 +0,0 @@ -import java.io.*; - -public class CleanupExample { - public static void main(String[] args) throws IOException { - InputStream in = new FileInputStream(args[0]); - try { - OutputStream out = new FileOutputStream(args[1]); - try { - byte[] b = new byte[10000]; - while (true) { - int r = in.read(b); - if (r == -1) break; - out.write(b, 0, r); - } - } finally { - if (out != null) { - out.close(); - } - } - } finally { - if (in != null) { - in.close(); - } - } - } -} -- cgit