Computing.Net > Forums > Programming > Good question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Good question

Reply to Message Icon

Name: ahmadajcis
Date: March 31, 2006 at 03:57:46 Pacific
OS: Windows XP SP2
CPU/Ram: 2.4/256
Product: compatable
Comment:

Hi,
How i can put info. which returned by system() function into a string. eg:
system("dir");
i'd like to store all info. of dir into a variable.
thanx alot.

ahmad

iam ahmad living in Nablus- Palestine.
am studying IT in An-Najah Nationa Univ.



Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: March 31, 2006 at 08:38:18 Pacific
Reply:

There are 2 things you can do to help us help you. 1) Use a more appropriate title for your question(s). 2) Give us more complete info on what you need, such as the language you are you using. Several languages use the system() function but have slightly different syntax.

If you're using Perl, instead of using the system function, you'd use backticks to capture the output of the system call.

$dir_listing = `dir`;


0

Response Number 2
Name: ahmadajcis
Date: March 31, 2006 at 22:50:24 Pacific
Reply:

am sorry for the umboguity,
the language is used C++,
thanx alot

ahmad


iam ahmad living in Nablus- Palestine.
am studying IT in An-Najah Nationa Univ.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Dancing Links export to excel VB.NET 2



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Good question

the age question! www.computing.net/answers/programming/the-age-question/7728.html

A processor question www.computing.net/answers/programming/a-processor-question/10420.html

Want to browse the content of thumbs.db www.computing.net/answers/programming/want-to-browse-the-content-of-thumbsdb/638.html