I have a text file where i want to change the | symbol into `n for line breaks.
So in the text file I have
Track 01 (GX4R52297054)|Track 02 (GX4R52297056)|Track 05 (GX4R52297065)|
and want it to be
Track 01 (GX4R52297054)
Track 02 (GX4R52297056)
Track 05 (GX4R52297065)
I've tried all sort of combinations with string replace, but keep getting error messages saying | is an illegal character.
Something like this, although this doesn't work:
Code: Select all
^+t::
FileRead, LineBreak, out.txt
LineBreak2 := StringReplace(LineBreak, "|", "`n")
MsgBox, % LineBreak2
return