can anyone help me write the code for the below situation using c-string? i'm cracking my head wif tis.....
title: Word Processor
Write a program to perform the following 3 functionalitiees.
1.Function to replace a misspelled word with a correct one. the keyboard input specification are:
--the name of the original text file.
--the misspelled word to be replaced
--the correct word that replaces the wrong one
--the name of the new text file
the output specifications are:
--display the line that contains the misspelled word
--display this line after the correction is made
--save the file that has been corrected.
2. Function that can perform a simple cut ant paste operation for a given file.
The keyboard input specification are:
a) the name of the original text.
b) the boundary of the cut section, which is represented by the starting words and the ending words. Note that the word to be used for the cut and paste boundary must be unique. if the word is not unique, you may need to use more than one word to define the boundary.
c) The location to start the paste section, which is represennted by a specified words.
d) The new output file name.
The program specification to
a) call a function to display the line that contain the starting words for the cut section. the function must be able to receive the contents of the line that was saved in a 1-D array in the main() function.
b) call a function to display the line that contains the ending words of the cut section. The function must be able to receive the contentd of the line that was saved in a char pointer in the main() function.
c) Display the line that contains the word for placing in the pasted section
d) Save the file that has been cut and pasted.
3. Function to split a text file onto several equal length files. The keyboard input specification are:
--the name of the original text file
--the total number of split file
--the name of each split file.
the output specification are
--display the name of the original text file
--display the total number of split files
--display the name of each split file
--Save each split file
hope u can help me..i nit it urgently, before this friday....thanks!!