Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: YotaMtch on November 02, 2008, 06:29:48 pm

Title: I/O redirection
Post by: YotaMtch on November 02, 2008, 06:29:48 pm
I have often seen the topic discussed but never solved : how can one redirect (for example) the standard output to a file. I think that adding "> file.txt" in the program's arguments used to work, but no more....

Any ideas ?
Title: Re: I/O redirection
Post by: thomas on November 03, 2008, 11:59:53 am
That is a feature provided by the shell (bash or DOS, or whatever). It sure does work, if you run your program from a proper shell. It does not work, if you run it from Code::Blocks, however.
Title: Re: I/O redirection
Post by: VincentB on January 26, 2010, 03:49:45 pm
Hello,

I am using nighlty build 6088, and redirecting output of command line by some >file.txt does not work.

I used to work with nightly build 3935.

  Vincent.