In my code, I have to change directories but chdir does not work. How do I go about setting the directory?
One more thing too...If you want to start polling in one directory,
Directory 1: /temp/dir1
I am getting a file from that directory and wanting to move it to another directory, /temp/dir2/
In that directory, I want to run a tool which generates another file but I want to set the directory to dir2 for the duration of the program. How would I do that? (Linux platform).