Loading Crawler/src/main/java/org/example/crawler.java +3 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,9 @@ public class crawler { crawler web_crawler = new crawler(); // Open the file and read all lines (URLs) into the queue try (FileReader f_read = new FileReader("crawler_test_file.txt"); String file_url = ""; if (args.length != 0 && args[0].equals("--file")) file_url = args[1]; try (FileReader f_read = new FileReader(file_url); BufferedReader buf_read = new BufferedReader(f_read)) { String url_line; while ((url_line = buf_read.readLine()) != null) { Loading Loading
Crawler/src/main/java/org/example/crawler.java +3 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,9 @@ public class crawler { crawler web_crawler = new crawler(); // Open the file and read all lines (URLs) into the queue try (FileReader f_read = new FileReader("crawler_test_file.txt"); String file_url = ""; if (args.length != 0 && args[0].equals("--file")) file_url = args[1]; try (FileReader f_read = new FileReader(file_url); BufferedReader buf_read = new BufferedReader(f_read)) { String url_line; while ((url_line = buf_read.readLine()) != null) { Loading