private static String readPRJFile ( File prjFile ) throws FileNotFoundException , IOException { try ( FileInputStream fis = new FileInputStream ( prjFile ) ) { BufferedReader r = new BufferedReader ( new InputStreamReader ( fis , Charset . defaultCharset ( ) ) ) ; StringBuilder b = new StringBuilder ( ) ; while ( r . ready ( ) ) { b . append ( r . readLine ( ) ) ; } return b . toString ( ) ; } }
Return the content of the PRJ file as a single string