Design a file-copying program in the c programming language

Assignment Help C/C++ Programming
Reference no: EM131669854

Assignment

MUST use version control software (ex: git, mercurial, subversion, etc) to manage your code. You may use a public repository like GitLabs, GitHub, BitBucket, etc to host your code.

Design a file-copying program, in the C programming language, namedfilecopyusing ordinary pipes.This program will be passed two parameters: the name of the file to be copied and the name of the copied file. The program will then create an ordinary pipe and write the contents of the file to be copied to the pipe. The child process will read this file from the pipe and write it to the destination file. For example, if we invoke the program as follows:

filecopy input.txt copy.txt

the fileinput.txtwill be written to the pipe. The child process will read the contents of this file and write it to the destination file copy.txt.
Write this program using UNIX pipes.

Apply appropriate error handling, see the General Notes Section below.

General Notes:

Error handling - Handle errors using appropriate error handling techniques.

? A bad or missing command line argument should cause the program to exit after it prints usage instructions in the same way many Linux command line utilities do. Ex: "usage: myprog arg1 arg2"

? Regular errors should be printed to stderr by means of fprintf(). The choice of when to terminate the program on specific errors is left to you.

? Failed system calls should use the perror() function for reporting error messages.

? MUST use version control software (ex: git, mercurial, subversion, etc) to manage your code. You may use a public repository like GitLabs, GitHub, BitBucket, etc to host your code.

Deliverables

1. The programs should be commented where necessary.
2. Submit only source code and other necessary documentation.
3. Please name your files appropriately to make it clear which question you are answering.

Reference no: EM131669854

Questions Cloud

Identify organisational issues leaders is facing : Drawing on current leadership research (from the last five years) what advice would you offer this leader to assist them in addressing these issues
Find the company corporate governance guidelines : Visit Liberty Media's website, www.libertymedia.com , and find the company's corporate governance guidelines. Assume that you're going to start a company.
Describe a workplace problem : Describe a workplace problem that could be investigated by an industrial/organizational (I/O) professional.What do you suspect is causing the problem?
Develop expertise in setting up new manufacturing plants : Concept Integration. You've developed considerable expertise in setting up new manufacturing plants, and now you'd like to strike out on your own.
Design a file-copying program in the c programming language : Design a file-copying program, in the C programming language, namedfilecopyusing ordinary pipes.This program will be passed two parameters: the name of the file
Write a research question of hypothesis statements : Write detailed notes that should help you cement these concepts during this initial learning stage and provide a very useful resource for you to draw .
Building team skills as per the requirements : Imagine that the president of your college or university has just announced plans to retire. Your team, playing the role of the school's board of directors.
Write a summary of the security improvements you recommend : Write a two page summary of the security improvements you recommend for PureLand chemical to ensure better security and compliance.
Conformity with the moral law : 1. What does it mean for an action to be objectively right? A. An action is objectively right if a person believes that the action is moral.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Evaluate the circumference of a circle

Write a program that will call a function to calculate the area of a circle, and call another function to calculate the circumference of a circle.

  Cryptanalysis of substitution ciphers

Cryptanalysis project consists of a software implementation of an algorithm that tries to decrypt an L-symbol challenge ciphertext using a plaintext dictionar - implementation has to be in C or C++ as these are the most recommended (for combined p..

  Write a program to read only one integer number

Write a program to read ONLY one integer number (your input must be one 3 digit number from 100 to 999), and to think of a number as being ABC (where A, B, and C are the 3 digits of a number)

  What will the program segment display

What will the program segment display.

  Describe the purpose of the hierarchical nature of

q1. explain the purpose of the hierarchical nature of traditional structured design.q2. describe what kinds of systems

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Program which calculates the average and sum of the numbers

write down a program which calculates the average and sum of the numbers enter by a user.Using a While Loop

  Function alter with two parms passed by reference

Write a function alter with two parms passed by reference: x and y. alter changes the value of x to x+y and changes the value of y to x*y. Write a main function to read in two integers, print the two integers, call the function alter using the two..

  Write a program that uses joptionpanes to perform

For example, if the distance of travel is 30 kilometers, the time of travel is 2 hours, then the speed is 30/2 = 15 (kilometers per hour).

  Implement a function named sort

Write a function named sort that takes three integer parameters by reference.The function should rearrange the parameter values so that the first parameter gets set to the smallest value

  Static field holds total winnings for all horses in stable

static field holds total winnings for all horses in the stable // total winnings are shown after each horse wins,

  Develop a phone services management system

TMF1414 Introduction to Programming - Calculate total charged amount for the company for every month and You are free to design your input, interface or any related components that your group thinks are necessary to be included in your system.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd