News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

I/O redirection

Started by YotaMtch, November 02, 2008, 06:29:48 PM

Previous topic - Next topic

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

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.