private void readFileFirst(File file){
  String line;
  try (InputStream fis=new FileInputStream(file);InputStreamReader isr=new InputStreamReader(fis,Charset.forName("UTF-8"));BufferedReader br=new BufferedReader(isr)){
    while ((line=br.readLine()) != null) {
      CustomLogger.log(line);
    }
  }
 catch (  FileNotFoundException e) {
    CustomLogger.logError("FileNotFoundException",e);
  }
catch (  IOException e) {
    CustomLogger.logError("IOException",e);
  }
}

private void readFileFirst ( File file ) { String line ; try ( InputStream fis = new FileInputStream ( file ) ; InputStreamReader isr = new InputStreamReader ( fis , Charset . forName ( "UTF-8" ) ) ; BufferedReader br = new BufferedReader ( isr ) ) { while ( ( line = br . readLine ( ) ) != null ) { CustomLogger . log ( line ) ; } } catch ( FileNotFoundException e ) { CustomLogger . logError ( "FileNotFoundException" , e ) ; } catch ( IOException e ) { CustomLogger . logError ( "IOException" , e ) ; } }
unused method used to check during developmenet if file has problem legacy code to delete
