hii everyone, kindly help me with this. i have been trying to take directory path as a command line argument for a File based program. when i specify a directory name with spaces as a command line argument, the main(String[] args) takes them as a different argument after each blank space. example: c:\documents and settings would be read as three different arguments.
i could write code to handle this situation but the solution is not generic. when i specify a directory name with more than one blank space in between, example: c:\documents<more than one space>and<more than one space>settings as my argument ... i fail.
is there anyway that i can read blank spaces from the command line or can i read a set of command line arguments in to one string with out missing the blank spaces.