Write a program to read and write a data file. While writing data follow the following instructions:
a)Add one space between two successive words.
b)Capitalize the first character of sentences.
c)If numerical data is present put them in bracket.
please help.... i am only able to write and read the data..... but not able to perform the given instructions.......
You need some way of identifying a sentence. That would involve searching for '.', but you can't enter them in your program because that's the terminator for your input.
Follow the instructions. Read your input from a file. Then you can put complete sentences in the file.