I'm creating my first project using C++ Builder 2009 Professional. When I obtain the current working directory using 'getcwd(' I get the pathway...I'm creating my first project using C++ Builder 2009 Professional. When I obtain the current working directory using 'getcwd(' I get the pathway with the word 'Debug' appended to it. If I strip off the 'Debug' so that the pathway appears correct , save it to disk and then open the file again and read the contents I find that the pathway has again got 'Debug' appended to it. Why is this happening?Show more