User forums > Using Code::Blocks

File Locations

(1/1)

LSTATS:
     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.

MortenMacFly:

--- Quote from: 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.

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version