From 587c5fdc3eb3a6985c38908150c32e46623ffa26 Mon Sep 17 00:00:00 2001 From: "chris.sutcliffe" Date: Mon, 13 Dec 2021 22:32:24 +0000 Subject: add very simple utils testing --- src/Compiler/Utils.java | 13 ++++++++++--- 1 file 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"); + } + } -- cgit v1.2.3