newline in dialogs?

BlitzMax Forums/BlitzMax Programming/newline in dialogs?

Just put ~n in the text file where you want the newline, but when you read in the string, just use replace() to replace them with real newlines.
Message = ReadLine(infile)
Message = Replace(Message,"~~n","~n")
etc...

You need "~~n" in the second paramter or else Replace will look for litteral newlines and not the "~n" sequence.