SRL Archive - OSR Help

WriteFileString


Dgby714

2010-02-06 06:17:08

Is there anyway to use WriteFileString and add a newline to the file?
btw
WriteFileString(File, '\n')
Doesn't work >.>

Naum

2010-02-06 06:27:43

Its #10+#13

So

WriteFileString(File, #10+#13)

:)

Dgby714

2010-02-06 06:51:20

Thanks Naum =)

Craig`

2010-02-06 12:32:38

if you want to save the byte(s) you could always do: #10#13 :)
just a personal question: does #13#10 translate to \r\n?

~ Craig` :)

Frement

2010-02-06 12:39:51

From: Craig`
if you want to save the byte(s) you could always do: #10#13 :)
just a personal question: does #13#10 translate to \r\n?

~ Craig` :)


Yes, #13 = Carriage Return (CR) = \r
and #10 = Line Feed (LF) = \n