summaryrefslogtreecommitdiff
path: root/gi/posterior-regularisation/prjava/src/io/FileUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'gi/posterior-regularisation/prjava/src/io/FileUtil.java')
-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