import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;

public class ReplayParser {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Input replay path:");
        String filename = scanner.nextLine();
        File folder = new File(filename);
        File[] listOfReplays = folder.listFiles();

        assert listOfReplays != null;

        for (File replay : listOfReplays) {
            if (replay.isFile()) {
               readReplay(replay);
            }
        }
    }

    private static void readReplay(File file) {
        try {
            String line = null;

            // FileReader reads text files in the default encoding.
            FileReader fileReader = new FileReader(file.getAbsoluteFile());

            // Always wrap FileReader in BufferedReader.
            BufferedReader bufferedReader = new BufferedReader(fileReader);

            while ((line = bufferedReader.readLine()) != null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}

@@ -1,1204 +1,77 @@
-import java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.util.Scanner;%0A%0Apublic class ReplayParser %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        System.out.print(%22Input replay path:%22);%0A        String filename = scanner.nextLine();%0A        File folder = new File(filename);%0A        File%5B%5D listOfReplays = folder.listFiles();%0A%0A        assert listOfReplays != null;%0A%0A        for (File replay : listOfReplays) %7B%0A            if (replay.isFile()) %7B%0A               readReplay(replay);%0A            %7D%0A        %7D%0A    %7D%0A%0A    private static void readReplay(File file) %7B%0A        try %7B%0A            String line = null;%0A%0A            // FileReader reads text files in the default encoding.%0A            FileReader fileReader = new FileReader(file.getAbsoluteFile());%0A%0A            // Always wrap FileReader in BufferedReader.%0A            BufferedReader bufferedReader = new BufferedReader(fileReader);%0A%0A            while ((line = bufferedReader.readLine()) != null) %7B%0A                System.out.println(line);%0A            %7D%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D
+public class ReplayParser %7B%0A    public static void main(String%5B%5D args) %7B%0A
 %0A   

Clean up