summaryrefslogtreecommitdiffstats
path: root/src/Compiler/Utils.java
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-12-04 05:24:43 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-12-04 05:24:43 +0000
commit43909b350b9084ed33f121a15c5770224cbdc79f (patch)
treeaff7f471784fbb1d1a3597acfeb43624d4ed94ad /src/Compiler/Utils.java
parentcc1f6e712520793d5a8c638a6e995c018917eadb (diff)
downloadesotericFORTRAN-43909b350b9084ed33f121a15c5770224cbdc79f.tar.gz
esotericFORTRAN-43909b350b9084ed33f121a15c5770224cbdc79f.zip
Added basic function support
Diffstat (limited to 'src/Compiler/Utils.java')
-rw-r--r--src/Compiler/Utils.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Compiler/Utils.java b/src/Compiler/Utils.java
index f9bd41c..d0206c1 100644
--- a/src/Compiler/Utils.java
+++ b/src/Compiler/Utils.java
@@ -4,7 +4,6 @@
package Compiler;
import java.io.*;
-import java.nio.file.Files;
public class Utils {
// Adapted from here for now
@@ -22,7 +21,7 @@ public class Utils {
while ((line = br.readLine()) != null)
//System.out.println(line);
readFile = readFile.append(line + "\n");
-
+ br.close();
return readFile.toString();
}