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
Try converting it to a URL
URL url = file.toURI().toURL();