C++ visual studio files

Apr 8th, 2015
RockCafe
Category:
Engineering
Price: $80 USD

Question description

1.  Create a complete program that:

a.   prompts a user to enter the name of an existing file. 

b.  If the file does not exist and or cannot be opened, the program should display an error message and quit. 

c.  If the file exists and can be opened, prompt the user for a new file-name.

d.  If the new file name already exists, print a message telling the user that the file already exists and ask the user whether they want to APPEND

  i.  if the user enters ‘N’ for “NO”, print a message “Operation canceled by user” and quit

  ii.  otherwise, open the file for APPEND and copy all of the contents from the original file

If the file doesn’t already exist, create a new file with the name supplied by the user and copy the contents of the original file into it

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: UIUC
PREMIUM TUTOR

Studypool has helped 1,244,100 students

Summary
Quality
Communication
On Time
Value
BlueOcean
Feb 28th, 2017
" Awesome! Exactly what I wanted. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1822 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors