How will I write a class which will read the contents of a text file. The program must then output the same text into a JOptionPane window and at the same time output the same text into another file. The output text must be in reverse order. For example, if the first file contains the following texts:
Harry Potter
Hogwarts School of Witchcraft and Wizardry
London, England
The output (JOptionPane and output to the second file) must be:
dnalgnE, nodnoL
yrdraziW dna tfarchctiW fo loohcS strawgoH
rettoP yrraH
...thanks for those who will answer...
...i'll appreciate more if you can explain it for me and for those who have the same questions like mine...