diff options
author | chris.sutcliffe <ctd.sutcliffe@gmail.com> | 2021-12-13 22:32:24 +0000 |
---|---|---|
committer | chris.sutcliffe <ctd.sutcliffe@gmail.com> | 2021-12-13 22:32:24 +0000 |
commit | 587c5fdc3eb3a6985c38908150c32e46623ffa26 (patch) | |
tree | f8aa908ca4c8ab6c45d60fca7de87b9bbcc13b47 | |
parent | 266acbfeffe75e941ebcc2358658a206fd2e9fcc (diff) | |
download | esotericFORTRAN-587c5fdc3eb3a6985c38908150c32e46623ffa26.tar.gz esotericFORTRAN-587c5fdc3eb3a6985c38908150c32e46623ffa26.zip |
add very simple utils testing
-rw-r--r-- | src/Compiler/Utils.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Compiler/Utils.java b/src/Compiler/Utils.java index d0206c1..b19320e 100644 --- a/src/Compiler/Utils.java +++ b/src/Compiler/Utils.java @@ -27,10 +27,17 @@ public class Utils { public static void main(String[] args) throws Exception { String currentPath = new java.io.File(".").getCanonicalPath(); - System.out.println("Current dir:" + currentPath); - String helpfile = readFile("Compiler/helpfile.txt"); - System.out.println(helpfile); + System.out.println("Util class testing"); + + try { + String helpfile = readFile("Compiler/helpfile.txt"); + System.out.println("File read success"); + } + catch (Exception e) { + System.out.println("File read failure"); + } + } |