chandragupta0001 / Shell-Utility-file-copy

Using system calls to handle all file operations, write a program in C/C++/Java that copies a file from one location to another, and deletes the original version. The program should take two file names as its arguments, the first one being the file to copy, and the second being the new location. The new location should not be over-written if it already exists. The program should check for bad inputs and should work for files of arbitrary size. In addition, the program should gracefully handle error conditions while copying the file. Make sure to use system calls (e.g., open) and not the C library for manipulating files (e.g., fopen).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shell-Utility-file-copy

Using system calls to handle all file operations, write a program in C/C++/Java that copies a file from one location to another, and deletes the original version. The program should take two file names as its arguments, the first one being the file to copy, and the second being the new location. The new location should not be over-written if it already exists. The program should check for bad inputs and should work for files of arbitrary size. In addition, the program should gracefully handle error conditions while copying the file. Make sure to use system calls (e.g., open) and not the C library for manipulating files (e.g., fopen).

About

Using system calls to handle all file operations, write a program in C/C++/Java that copies a file from one location to another, and deletes the original version. The program should take two file names as its arguments, the first one being the file to copy, and the second being the new location. The new location should not be over-written if it already exists. The program should check for bad inputs and should work for files of arbitrary size. In addition, the program should gracefully handle error conditions while copying the file. Make sure to use system calls (e.g., open) and not the C library for manipulating files (e.g., fopen).


Languages

Language:C 100.0%