Write a command line program that performs conversions on a text file.
java Convert [-uc] [-oc word] inputfile outputfile
Using the text,
The mice will see you now
as an example, below is a description of parameters:
finds each lowercase letter c in the text file, and converts it to uppercase
The mice will see yOu nOw
finds each word in the file beginning with the character c (not case sensitive) and adds word after it separated by commas.
The mice, ouch, will see you now
name of the file to convert
name of the file to save the converted file to
Allow multiple parameters, such as
java Convert -uo -ui -om ouch -ow like mouse.txt changed.txt
Output to changed.txt :
The mIce, ouch, wIll, like, see yOu nOw