Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
I/O redirection
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
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 ?
Logged
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.
Logged
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."
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.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
I/O redirection