Skip to content
Snippets Groups Projects
Commit 6986c2dc authored by sfphoton's avatar sfphoton
Browse files

Resolved bug when parsemap would only read from the console.

parent 7df3adf7
Branches
Tags Proto
No related merge requests found
......@@ -225,11 +225,13 @@ public class Main {
private static void script(String file) throws IOException
{
BufferedReader backup = br;
//Maybe this works...
File scriptFile=new File(file);
FileInputStream fis=new FileInputStream(scriptFile);
InputStreamReader isr = new InputStreamReader(fis);
BufferedReader br = new BufferedReader(isr);
br = new BufferedReader(isr);
while (true) {
String line;
......@@ -242,6 +244,8 @@ public class Main {
br.close();
br = backup;
}
//code copied from StackOverFlow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment