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
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.
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.
Summary: Good question to ask but difficult to answer. I look at programming languages like spoken languages. One that speaks French can transition to Spanish or Italian because they have similar origins. ...
Summary: Very good question. The answer is both. In computational models, nbits refers to global addressable space. That would be the maximum number of bits a CPU can comprehend at once for input (that's a l...