Code: Select all
string$ = "Line one\nLine2"
Debugprint(string$)
But if I have the exact same text in a file and read the line into a string, it will debugprint as a single line.
Why is this?
Code: Select all
string$ = "Line one\nLine2"
Debugprint(string$)
Code: Select all
string$ = "Line one\\nLine2"
DebugPrint(string$)
Code: Select all
OpenFile(1, "test.txt", #MODE_READ)
string$ = Readline(1)
CloseFile(1)
SystemRequest("",string$, "OK", #REQICON_INFORMATION)
Code: Select all
string$ = "This is line one\nThis is line two"
SystemRequest("",string$, "OK", #REQICON_INFORMATION)[
Code: Select all
CRLF = Chr(13)..Chr(10) ;Windows
string$ = "This is line one"..CRLF.."This is Line two"
SystemRequest("",string$, "OK", #REQICON_INFORMATION)
OpenFile(1, "C:/Users/Micha/Desktop/a.txt", #MODE_READWRITE)
WriteString(1, string$)
CloseFile(1)
OpenFile(1, "C:/Users/Micha/Desktop/a.txt", #MODE_READ)
string$ = ReadString(1)
CloseFile(1)
SystemRequest("",string$, "OK", #REQICON_INFORMATION)
Code: Select all
combined$ = string15$.."\n"..string16$