How to consider the Input File Name containing spaces in it , when given by user.
I wrote a java code which picks up the File Name from the console
Now I want the java code to consider the Input File Name , with spaces in it .
File readin = null;
boolean gettingFilename = true;
System.out.println("Enter fully qualified CCLN Dataset name: ");
inFile = scan.next();
Which the code is not doing .
Can anyone help me with the statements to consider the Input File , with spaces in its name .
Thank You In Advance .