Re: using std::system
From: Alwyn (dt015a1979_at_mac.com.invalid)
Date: 10/19/04
- Next message: Chris \( Val \): "Re: Question about std::remove"
- Previous message: Chris \( Val \): "Re: Question about std::remove"
- In reply to: Edo: "Re: using std::system"
- Next in thread: Chris \( Val \): "Re: using std::system"
- Reply: Chris \( Val \): "Re: using std::system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 19 Oct 2004 12:23:38 +0100
In article <cl2sit$3ta$1@news-02.connect.com.au>, Edo
<eddod@eddododod.dod> wrote:
>
> I should rewrite this... I understand what the system rutine takes, but
> how can I pass variables as filenames here.
That shouldn't be too difficult.
string infile = "somefile";
string outfile = "someotherfile";
system("wc -l " + infile + " > " + outfile);
should do the trick, I think.
Alwyn
- Next message: Chris \( Val \): "Re: Question about std::remove"
- Previous message: Chris \( Val \): "Re: Question about std::remove"
- In reply to: Edo: "Re: using std::system"
- Next in thread: Chris \( Val \): "Re: using std::system"
- Reply: Chris \( Val \): "Re: using std::system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|