Java tutorial
import java.nio.file.Files; import java.nio.file.Paths; public class Main { public static void main(String[] args) throws Exception { Files.lines(Paths.get("c:/Java_Dev", "run.bat")).filter(line -> line.startsWith("A")) .forEach(System.out::println); } }