Computers and Technology
Computers and Technology, 14.10.2019 22:30, edjiejwi

Write a c/c program that executes the command "ls" with standard output redirected to a file "a. txt". the same program then asks the user to enter a search key (using cin), reads the a. txt file to find it and reports whether the search key was found among the list of files in the current directory or not. note that you must use an exec() function to run the "ls" command and before that, you must redirect stdout to the file a. txt. also, at the end, you must report the result in the stdout. you cannot use the "system()" function. make sure to test your program.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:20, kcameronanderso
What’s resistance in an electrical circuit ?
Answers: 1
image
Computers and Technology, 22.06.2019 21:30, sunshinekisses
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, rose6038
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
image
Computers and Technology, 23.06.2019 18:50, ana7496
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
Do you know the correct answer?
Write a c/c program that executes the command "ls" with standard output redirected to a file "a. txt...

Questions in other subjects:

Konu
History, 21.04.2021 17:40