|
-
November 4th, 2010, 11:30 AM
#1
using linux commands in C++ code
Hello Everyone.
I wanted to know if there is any way I can use linux commands in C++. I want to store the output of a program in a file which is otherwise displayed on the screen using cout. I want that output to be stored in a file instead of displaying it on the screen. For example I write
on the command line and it writes the output in a file called abc.log. So is there any way I can use this command inside C++ code?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|