Yeah....Thanks Dittmer...
I got the solution, the problem is with the
changeWorkingDirectory("DataFeed/");
If i give that it looks for the file in DataFeed/DataFeed/ directory. Since i am giving absolute paths in rename method, there is no need of changeWorkingDirectory.
Am i right Dittmer???
once again thanks....