public static void foreach ( String path , Consumer < ? super String > block ) { Ruby . Enumerator . of ( new EachLineIterable ( new File ( path ) ) ) . each ( block ) ; }
Iterates a file line by line .