News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

File Locations

Started by LSTATS, September 22, 2008, 07:13:53 PM

Previous topic - Next topic

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.
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]