summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/PresentFile.java39
-rw-r--r--io/ReadFile.java2
-rw-r--r--io/WriteFile.java2
3 files changed, 2 insertions, 41 deletions
diff --git a/io/PresentFile.java b/io/PresentFile.java
deleted file mode 100644
index 14ca7b5..0000000
--- a/io/PresentFile.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*+
- * Copyright 2012 rsiddharth
- * Email: <rsiddharth@ninthfloor.org>
- *
- * This file is part of Scruf.
- *
- * Scruf is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-
-package scruf.io;
-
-import java.io.*;
-
-/**
- * Contains information about the present file that
- * is being parsed by the parsers.
- *
- */
-public class PresentFile {
- public static String name;
- public static String footer;
- public static String backButton;
- public static File file;
-}
-
-
-
diff --git a/io/ReadFile.java b/io/ReadFile.java
index beccdc3..2607b16 100644
--- a/io/ReadFile.java
+++ b/io/ReadFile.java
@@ -44,7 +44,7 @@ public class ReadFile {
new FileReader(file));
}catch(FileNotFoundException e) {
throw new RuntimeException("Unable to open file :"
- +file.getName());
+ +file.getAbsolutePath());
}
String line;
StringBuilder sbuilder = new StringBuilder();
diff --git a/io/WriteFile.java b/io/WriteFile.java
index d19bb72..0a2a1e7 100644
--- a/io/WriteFile.java
+++ b/io/WriteFile.java
@@ -32,7 +32,7 @@ public class WriteFile {
}
public void write() {
try {
- System.out.println("Writing..."+outputFile.getName());
+ System.out.println("Writing..."+outputFile.getAbsolutePath());
BufferedWriter bwriter = new BufferedWriter
(new FileWriter(outputFile));
// write content to file.