Hi all,
I am trying to read in a file into my program and the following is my codes.
When I compile and run teh program, the program just hangs there. I wonder if there is anything wrong with my codes below. Pls advise.
===========================================================
File inputFile = new File("jobfile.txt"
;
FileInputStream file = new FileInputStream(inputFile);
BufferedReader stdin = new BufferedReader (new InputStreamReader (System.in));
StringTokenizer reader = new StringTokenizer (stdin.readLine());
I am trying to read in a file into my program and the following is my codes.
When I compile and run teh program, the program just hangs there. I wonder if there is anything wrong with my codes below. Pls advise.
===========================================================
File inputFile = new File("jobfile.txt"
FileInputStream file = new FileInputStream(inputFile);
BufferedReader stdin = new BufferedReader (new InputStreamReader (System.in));
StringTokenizer reader = new StringTokenizer (stdin.readLine());