Thanx for replying.. Actually I don't get any error.. this code is able to read files or folders without spaces in them, but it does not read files with spaces in them. The url encoded chars I placed here is just to replace the %20 with spaces. but if you think this should not be so, I'll be...