File inputTXT = new File (fileName);
try{
Scanner in = new Scanner(inputTXT);
}catch(FileNotFoundException e){
System.out.println("");
}
while(in.hasNext()){
String line = in.nextLine();
It says in can't be resolved.How am I going to fix this problem?
I've tried ignored try catch block, but this file scanner has to be in the try catch block