diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2012-11-10 17:31:36 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2012-11-10 17:31:36 +0530 |
commit | 0637e50adf2490a98695bd3b63db12f32f8af631 (patch) | |
tree | 18446a430ad8c17833bb23a4e95383d8c9e2ca0d /io | |
parent | d2f10460050965fa11e046bd6967b08a0e5e49b7 (diff) | |
parent | ab443161eaa4cb631423884972108785ce764269 (diff) |
merged from devel branch
Diffstat (limited to 'io')
-rw-r--r-- | io/PresentFile.java | 39 | ||||
-rw-r--r-- | io/ReadFile.java | 2 | ||||
-rw-r--r-- | io/WriteFile.java | 2 |
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. |