I am trying to decode the text below by reversing it.
,sdreh ni dam og yeht taht nees eb lliw ti ;sdreh ni kniht neM“
”.eno yb eno dna ,ylwols sesnes rieht revocer ylno yeht elihw
I used this code to do it.
String reed = File.ReadAllText("DecodeThis.txt"); char array1 = reed.ToCharArray(); Array.Reverse(array1); Console.WriteLine(array1); Console.ReadLine();
The problem with this code is that it reverse not only the charactors but also the lines.
I want the outcome to be
" Men think in hards: it will be seen taht they go mad in herds,
while they only recover their senses slowly, and on by one.
while they only recover their senses slowly, and on by one.?
?Men think in hards: it will be seen taht they go mad in herds"
How can i do that? please help