Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: LSTATS on September 22, 2008, 07:13:53 pm

Title: File Locations
Post by: LSTATS on September 22, 2008, 07:13:53 pm
     How do I configure Code::Blocks to write simple files such as file.txt in the obj/release file and read it instead of putting it in my User file (example /User/somename/).  I can access the file using the absolute filename such as "/User/somename/file.txt" but I want to use the relative filename like file.txt and have the file in the build folder.

p.s. I'm using a Mac for this.
Title: Re: File Locations
Post by: MortenMacFly on September 23, 2008, 08:46:53 am
     How do I configure Code::Blocks to write simple files such as file.txt in the obj/release file and read it instead of putting it in my User file (example /User/somename/).  I can access the file using the absolute filename such as "/User/somename/file.txt" but I want to use the relative filename like file.txt and have the file in the build folder.
Probably I am too dumb, but I don't get what you want.

If you want to know how to write an application that outputs something in a file in a certain path than you are out of luck here. This forum is *not* a general programming forum.

Please ask C::B related questions here only, probably a step-by-step instruction so we can follow.