I am using this code for file reading here i am supposed to take Strings ,ints,
FileInputStream fin=new FileInputStream(args[0]); //reads file
BufferedReader br = new BufferedReader(new InputStreamReader(fin));
I am using br.readLine() for reading Strings ...It works fine
But while reading the ints i am using br.readInt() ...where i am getting an error.
Plese help me to sort it out
FileInputStream fin=new FileInputStream(args[0]); //reads file
BufferedReader br = new BufferedReader(new InputStreamReader(fin));
I am using br.readLine() for reading Strings ...It works fine
But while reading the ints i am using br.readInt() ...where i am getting an error.
Plese help me to sort it out