Question: Please write the program in Standard C language. Please also include the screenshots of the IDE. Thanks Write a program that prompts the user for
Write a program that prompts the user for a source file, a character to be deleted, a second character to be replaced by, a third character to be replaced to, and a fourth character which will be replacing the character at every Sth position (5,10,15,20... until the end of file) in the file. For example, if the user enters old.dat % & * + Then, all copies of % must be removed from the file old.dat, and all instances of & must be replaced by in the revised file old.dat, and then every Sth position in the revised old.dat will be a+.Note that the last action will be to replace the character at every Sth position with a+ after the other actions are done, please check to see if there are any instances of %-if none, nothing to delete. Please check if there are any instances of & -if none, nothing to replace. Note, you do not create a new file, ever. The change must be in the old file. Hint: You may use the command fseek etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
