WriteString(): Add flag to set the line ending char
Posted: Tue Jan 30, 2018 6:20 pm
For example:
With this change, the command WriteStringN() will be not needed anymore.
----------------------------------------------------------------
My old post text:
For example:
Currently, WriteStringN() uses #CRLF$ as the ending line character under Windows and #LF$ under Linux.
Code: Select all
WriteString(File, Text$, #PB_File_CR)
WriteString(File, Text$, #PB_File_CRLF)
WriteString(File, Text$, #PB_File_LF)
WriteString(File, Text$, #PB_File_SystemEOL) ; The same as WriteStringN()
WriteString(File, Text$)
----------------------------------------------------------------
My old post text:
For example:
Code: Select all
WriteStringN(File, Text$, #PB_File_CR)
WriteStringN(File, Text$, #PB_File_CRLF)
WriteStringN(File, Text$, #PB_File_LF)