Author Topic: I/O redirection  (Read 3665 times)

YotaMtch

  • Guest
I/O redirection
« 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 ?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: I/O redirection
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline VincentB

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: I/O redirection
« Reply #2 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.