public static List < String > appendLines ( List < String > result , String file , String encoding ) throws IOException { InputStream is = new FileInputStream ( file ) ; try { return appendLines ( result , is , encoding ) ; } finally { is . close ( ) ; } }
Utility for loading lines from a file .