I want to access files in a directory which have spaces in filename from a java program but it doesnot access file.
Scenario is i have names of file in a file . irea
if u are taking input as a file path the try using sc.nextline() to read white spaces
sc.nextline()