Question: My File Copy (Modified, more restrictive, version of Programming Problems 2.24 in your text if your copy includes the Programming Problems) Write a program using

My File Copy (Modified, more restrictive, version of Programming Problems 2.24 in your text if your copy includes the Programming Problems)

Write a program using the C language using the POSIX library to read data from one file and copy the data to another file. The program should read two command line arguments: the name of the source file and the name of the destination file. Be sure and provide the appropriate error checking of the command line arguments including checking if there are too few arguments or too many arguments. Compile and run the program using either cygwin on a Windows computer, a Virtual Machine (e.g. Hyper-V {Windows}, Oracle VirtualBox or VMware Workstation Player) running a distribution of Linux of your choice on any supported hardware platform, or Windows Subsystem for Linux (WSL).

Include in your submission a listing from the strace utility using the option '-o' or the dtrace utility. Name your program using your full name followed by '_fcopy.c'. On a Mac the command the command to use is 'sudo dtruss'. Please submit a report with the listing of the trace utility and a brief comment on what the output you see from the trace utility shows. Also include your source code.

I would be really thankful if you could help me out with the details. And please don't copy other answers to here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!