0
mpmgi
Write a function that takes three argument 1st input file, 2nd output file and 3rd transformation
function. First argument is the file opened for reading, second argument is the file opened for writing
and third argument is a function, which takes single string and performs a transformation of your
choice and returns the transformed string. The function should reed each line in the input file, pass
the line through transformation function and then write transformed line to output file. A
transformation can be - capitalize first alphabet of every word.
Reply on This
0 Subscribers
Submit Answer
0 Answers