T tony2socks Member Licensed User Longtime User Dec 31, 2012 #1 I have a question on the StringUtils library / SaveCSV2 output. I can successfully write a file, but the output creates a new line with LF. Is there a means for creating CRLF for a new line? Thanks!
I have a question on the StringUtils library / SaveCSV2 output. I can successfully write a file, but the output creates a new line with LF. Is there a means for creating CRLF for a new line? Thanks!
Erel B4X founder Staff member Licensed User Longtime User Jan 1, 2013 #2 If the text is not too long then you can read the entire text, replace the end of line character and save it: B4X: Dim s As String = File.ReadString(...) s = s.Replace(chr(10), chr(13) & chr(10) File.WriteString(...) Upvote 0
If the text is not too long then you can read the entire text, replace the end of line character and save it: B4X: Dim s As String = File.ReadString(...) s = s.Replace(chr(10), chr(13) & chr(10) File.WriteString(...)
T tony2socks Member Licensed User Longtime User Jan 1, 2013 #3 Awesome answer, thank you for the reply. This is much easier than trying to trick out the library. I've got an MS SQL server that doesen't like LF. Any idea what the string limit might be for this action? Happy New Years Upvote 0
Awesome answer, thank you for the reply. This is much easier than trying to trick out the library. I've got an MS SQL server that doesen't like LF. Any idea what the string limit might be for this action? Happy New Years