I need to be able to create a text file in Notepad and have my program read the lines from the text file into variables. Right now I'm using CStdioFile to ReadString the lines into variables and everything is working pretty good.
My question is: is there a way to add something within the line in the text file that would cause a carriage return within that line as it's put into an edit box? In other words, let's say I have three lines in the text file and when I use ReadString on this file, I load those three lines into separate variables. Now, within the third string, I want carriage returns to show up in the edit box when I load that string. I've tried adding \r\n to the line in the text file. I've tried using CFile::typeText as a parameter of CStdioFile. I've tried replacing \r\n within the resulting CString variable to "\r\n" and other crazy stuff. So far, I haven't been able to get carriage returns to happen within a line.
Is it possible to add something to a line in a text file that can be read by CStdioFile::ReadString to put carriage returns within that line? Alternatively, if I can replace, say, "\r\n" with something within the CString variable after loading the line from the text file, what can I put in there to cause a carriage return within the edit box? I hope this makes sense. If it doesn't, I'll clarify. Thanks.