User forums > Using Code::Blocks

I/O redirection

(1/1)

YotaMtch:
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 ?

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

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

Navigation

[0] Message Index

Go to full version