I want to reverse characters in a line of a text file, sample text file content is as below,
ABCDEF
EFGHIJ
013236
Expected output is,
FEDCBA
JIHGFE
632310
I have tried using readlines()
, but I ended up reversing the order of lines as well.
Please suggest