Redirecting the console output in WinXP
- Posted by Jesus Connsuegra <jconsuegra at yahoo.com> Jun 04, 2007
- 590 views
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.