@Override
	public List<Sentence> readFile(String datafile) {
		// TODO Auto-generated method stub
		// read all data into a data string
		String dataStr = "";
		try{
			BufferedReader in = new BufferedReader(new InputStreamReader(
					new FileInputStream(datafile), "UTF-8"));
			String line;
			int count = 0;
			while ((line = in.readLine()) != null){
				System.out.println("Line " + count++);
				dataStr += line + "\n";
			}
			in.close();			
		}
		catch (Exception e){
			System.out.println(e.getMessage());
			return null;
		}
		return readString(dataStr);
	}
@ Override public List < Sentence > readFile ( String datafile ) { String dataStr = "" ; try { BufferedReader in = new BufferedReader ( new InputStreamReader ( new FileInputStream ( datafile ) , "UTF-8" ) ) ; String line ; int count = 0 ; while ( ( line = in . readLine ( ) ) != null ) { System . out . println ( "Line " + count ++ ) ; dataStr += line + "\n" ; } in . close ( ) ; } catch ( Exception e ) { System . out . println ( e . getMessage ( ) ) ; return null ; } return readString ( dataStr ) ; }
/* (non-Javadoc)
@see jvntextpro.data.DataReader#readFile(java.lang.String)