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

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
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
0
mpmgi
Mar 20, 2021 04:50 PM 0 Answers
Member Since Jun 2020
Subscribed Subscribe Not subscribe
Flag(0)

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
Replying as Submit
0 Subscribers
Submit Answer
0 Answers