Author Topic: File Locations  (Read 2931 times)

LSTATS

  • Guest
File Locations
« 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: File Locations
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ