Given a text file. The task is to reverse as well as stores the content from an input file to an output file. This reversing can be performed in two types.
Full reversing: In this type of reversing all the content gets reversed.
Word to word reversing: In this kind of reversing the last word comes first and the first word goes to the last position.
Example 1: Full Reversing
<pre><span style="font-family: arial, helvetica, sans-serif;"><span style="font-size: 10pt;"><strong>Input:</strong> Hello Geeks for gee..