From 9e77f4c62c216b01acfa11d97e38ccc82ca04136 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(+) 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