1. Redirecting the console output in WinXP

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.

new topic     » topic index » view message » categorize

2. Re: Redirecting the console output in WinXP

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Redirecting the console output in WinXP

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Redirecting the console output in WinXP

Thanks to both, Robert and Jacques. Now it does work as expected!.
Jes.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu