question: public static String [ ] readFile ( String networkEngineToConfig ) throws IOException { ArrayList < String > ret = new ArrayList < String > ( ) ; InputStream inStream = new FileInputStream ( networkEngineToConfig ) ; InputStreamReader inFile = new InputStreamReader ( inStream ) ; BufferedReader inBuf = new BufferedReader ( inFile ) ; String line ; while ( ( line = inBuf . readLine ( ) ) != null ) ret . add ( line ) ; inBuf . close ( ) ; return ret . toArray ( new String [ ret . size ( ) ] ) ; }
target:  Read a text file. Return string array with one string per line. 