I have a text from a text file, with multiple lines in it.
I wanted to split it by the new line symbol and put the following:
System.Text.RegularExpressions.Regex.Split(myTxt, Environment.Newline)
It indeed split them by the new line symbol but each line is reversed. Why?!
I found out that the problem is that the ‘Read text file’ reads the lines in an xml file in a reversed order. Which is strange.
Nope, it’s even funnier. It’s just the IE which shows the lines in a reversed order. In a normal notepad it looks as it is supposed to look. Be careful when dealing with xml files.