Write a c program which asks the user the enter 4 c-strings


Question :

Write a C++ program which asks the user the enter 4 C-strings: fileName1, fileName2, word1, and word2. Your program should open the file whose name is fileName1 as an input file (assuming it exits), find all the occurrences of the string word1 in the this file, and create a new file named fileName2with all the occurrences of word1 replaced with word2.

Example: assume that fileName1 = "input.txt00, fileName2 = "output.txt00, word1 = "ile", word2 = "IeL", and assume that the file "input.txt" consists of the text

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c program which asks the user the enter 4 c-strings
Reference No:- TGS02874773

Expected delivery within 24 Hours