From 33359862f5455dc7003ebbe5357c611298042cee Mon Sep 17 00:00:00 2001 From: "chris.sutcliffe" Date: Mon, 29 Nov 2021 16:46:56 +0000 Subject: clean repo (remove code dir, add UI dir) --- code/FORTRAN2C/fortran2c/CWriter.java | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 code/FORTRAN2C/fortran2c/CWriter.java (limited to 'code/FORTRAN2C/fortran2c/CWriter.java') diff --git a/code/FORTRAN2C/fortran2c/CWriter.java b/code/FORTRAN2C/fortran2c/CWriter.java deleted file mode 100644 index fec748a..0000000 --- a/code/FORTRAN2C/fortran2c/CWriter.java +++ /dev/null @@ -1,26 +0,0 @@ -package fortran2c; - -import java.io.*; -import java.util.HashSet; - -public class CWriter { - - private String filePath; - private File theFile; - private FileWriter theFileWriter; - private HashSet functions; - - public CWriter(String filePath) throws IOException { - this.filePath = filePath; - File theFile = new File(filePath); - - if (theFile.createNewFile()) { - FileWriter theFileWriter = new FileWriter(filePath); - theFileWriter.write("#include \n#include \n\nint main(int argc, char** argv) {\n}"); - theFileWriter.close(); - functions.add("main"); - } else { - throw new IOException("The file already exists"); - } - } -} -- cgit v1.2.3