From 5605a42b8aa6568cc6f11f84fd1f9b0ac2dd596d Mon Sep 17 00:00:00 2001 From: desaicwtf Date: Mon, 5 Jul 2010 15:24:38 +0000 Subject: git-svn-id: https://ws10smt.googlecode.com/svn/trunk@125 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/posterior-regularisation/prjava/src/io/FileUtil.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gi/posterior-regularisation/prjava') 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 -- cgit v1.2.3