summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordesaicwtf <desaicwtf@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 15:24:38 +0000
committerdesaicwtf <desaicwtf@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-05 15:24:38 +0000
commit9e77f4c62c216b01acfa11d97e38ccc82ca04136 (patch)
tree5e7f3b3f9440aceb44f2d76fb2566e2b6727e7bc
parent37d5d18ac69dfe7830607f7c288f29b5f0141312 (diff)
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@125 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r--gi/posterior-regularisation/prjava/src/io/FileUtil.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/gi/posterior-regularisation/prjava/src/io/FileUtil.java b/gi/posterior-regularisation/prjava/src/io/FileUtil.java
index bfa58213..7d9f2bc5 100644
--- a/gi/posterior-regularisation/prjava/src/io/FileUtil.java
+++ b/gi/posterior-regularisation/prjava/src/io/FileUtil.java
@@ -13,6 +13,18 @@ public class FileUtil {
}
return localsc;
}
+
+ public static BufferedReader openBufferedReader(String filename){
+ BufferedReader r=null;
+ try
+ {
+ r=(new BufferedReader(new FileReader(new File(filename))));
+ }catch(IOException ioe){
+ System.out.println(ioe.getMessage());
+ }
+ return r;
+ }
+
public static PrintStream openOutFile(String filename){
PrintStream localps=null;
try