1. Redirecting the console output in WinXP
- Posted by Jesus Connsuegra <jconsuegra at yahoo.com> Jun 04, 2007
- 592 views
- Last edited Jun 05, 2007
Hi Euphorians!. Nice to see all of you still here. I've been out of programming for quite long, but at the end, hen a programming need does arise, one must ressort to the good old Euphoria... This time I've run into trouble when trying to redirect the console output to a file. I'm running my program on a WinXP machine. This happens with both Euphoria 3.0.2 and 3.1. If I use
printf(1,"%s",{"my string"})
to send the output to the standard output, and from the command line I do
exw myprogram.exw > output.txt
I get the output.txt file created with lenght zero, and all the output goes to the console... So I'm afraid I'm doing something wrong or there is a glitch on this. Any feedback will be very welcome. Thanks in advance. Jes.
2. Re: Redirecting the console output in WinXP
- Posted by Robert Craig <rds at RapidEuphoria.com> Jun 05, 2007
- 580 views
Jesus Connsuegra wrote: > This time I've run into trouble when trying to redirect the console output > to a file. I'm running my program on a WinXP machine. This happens with > both Euphoria 3.0.2 and 3.1. > > If I use > }}} <eucode> > printf(1,"%s",{"my string"}) > </eucode> {{{ > to send the output to the standard output, and from the command line I do > }}} <eucode> > exw myprogram.exw > output.txt > </eucode> {{{ > > I get the output.txt file created with lenght zero, and all the output goes > to the console... So I'm afraid I'm doing something wrong or there is a glitch > on this. Try using exwc instead of exw. exwc is the "console mode" version of exw. It handles I/O redirection much better. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
3. Re: Redirecting the console output in WinXP
- Posted by jacques deschĂȘnes <desja at globetrotter.net> Jun 05, 2007
- 569 views
Hi Jesus, Try exwc myprogram.exw > output.txt Jesus Connsuegra wrote: > > Hi Euphorians!. > > Nice to see all of you still here. > I've been out of programming for quite long, but at the end, > hen a programming need does arise, one must ressort to the good old > Euphoria... > > This time I've run into trouble when trying to redirect the console output > to a file. I'm running my program on a WinXP machine. This happens with > both Euphoria 3.0.2 and 3.1. > > If I use > }}} <eucode> > printf(1,"%s",{"my string"}) > </eucode> {{{ > to send the output to the standard output, and from the command line I do > }}} <eucode> > exw myprogram.exw > output.txt > </eucode> {{{ > > I get the output.txt file created with lenght zero, and all the output goes > to the console... So I'm afraid I'm doing something wrong or there is a glitch > on this. > > Any feedback will be very welcome. > Thanks in advance. > Jes.
4. Re: Redirecting the console output in WinXP
- Posted by Jesus Consuegra <jconsuegra at yahoo.com> Jun 05, 2007
- 576 views
Thanks to both, Robert and Jacques. Now it does work as expected!. Jes.