summaryrefslogtreecommitdiff
path: root/gi
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
commit5605a42b8aa6568cc6f11f84fd1f9b0ac2dd596d (patch)
treed8788b60f33ee70a5602e0831a3d49d13872eec1 /gi
parentf2c8c693795f7d4c29baae8594bbf6dcbadd958c (diff)
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@125 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi')
-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