I realize that was not a very descriptive question, but I wasn’t sure how else to state it..
I wrote an interpreter, Tiny_Int.java, for a made up language called “tiny”. All I need to know is how to run the interpreter with a specified tiny file like so:
java Tiny_Int <Sample.tiny
It may be helpful to know I am using this to read the tiny file
FileReader fileReader = new FileReader(file); //file being the Sample.tiny
BufferedReader bufferedReader = new BufferedReader(fileReader);
You are redirecting the file to the Java command, therefore you should read the content from standard input stream (
System.in) using,Use
br.readLine()to read each line until it returns null.