lists.zerezo.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: [Mingw-users] Trouble with File Input and Output



On Monday 30 June 2008 20:06:16 Greg Chicares wrote:
> On 2008-06-30 18:12Z, tomotomo wrote:
> > When I compile g++ text.cpp, it works, an 'a' file appears. When
> > I used the command ./a.out < input.txt for input and output, the
> > cmdline says '.' is not recognized as an internal or external
> > command, operable file, or batch file.
>
> You're using the msw "dos prompt", so try typing just this:
>   a
> The './' part would be for a *nix shell.

Greg is quite correct here.  However, there is another problem here, 
or rather another misunderstanding on your part -- a.out is the 
default name for the executable on *nix, but on MSW it will be a.exe

Regards,
Keith.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users