summaryrefslogtreecommitdiffstats
path: root/code/FORTRAN2C/fortran2c/CWriter.java
diff options
context:
space:
mode:
authorchris.sutcliffe <ctd.sutcliffe@gmail.com>2021-11-29 16:46:56 +0000
committerchris.sutcliffe <ctd.sutcliffe@gmail.com>2021-11-29 16:46:56 +0000
commit33359862f5455dc7003ebbe5357c611298042cee (patch)
tree1eff075406177fb2d0feff685f24c7e306f589c8 /code/FORTRAN2C/fortran2c/CWriter.java
parent2e3be43da8761eb77b00af20f559fef7a8c6b1b8 (diff)
downloadesotericFORTRAN-33359862f5455dc7003ebbe5357c611298042cee.tar.gz
esotericFORTRAN-33359862f5455dc7003ebbe5357c611298042cee.zip
clean repo (remove code dir, add UI dir)
Diffstat (limited to 'code/FORTRAN2C/fortran2c/CWriter.java')
-rw-r--r--code/FORTRAN2C/fortran2c/CWriter.java26
1 files changed, 0 insertions, 26 deletions
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<String> 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 <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char** argv) {\n}");
- theFileWriter.close();
- functions.add("main");
- } else {
- throw new IOException("The file already exists");
- }
- }
-}