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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

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

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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