Vinians2006 Active Member Licensed User Longtime User Mar 20, 2012 #1 Hi Im using a List type and add some strings and so creating a text file using lst.WriteList() to create that file. But its not adding the CRLF on the end of line.. How can I config it correctly to add CRLF ?
Hi Im using a List type and add some strings and so creating a text file using lst.WriteList() to create that file. But its not adding the CRLF on the end of line.. How can I config it correctly to add CRLF ?
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2012 #2 Android (linux) uses chr(10) as the end of line character. The same is true for File.WriteList. Upvote 0
Vinians2006 Active Member Licensed User Longtime User Mar 20, 2012 #3 Erel said: Android (linux) uses chr(10) as the end of line character. The same is true for File.WriteList. Click to expand... Hum... ok, but then how can I write a file with CRLF ? I tryed with TextWriter and added CRLF constant in each line and used Write() method but the result was the same. Thanks in advance! Upvote 0
Erel said: Android (linux) uses chr(10) as the end of line character. The same is true for File.WriteList. Click to expand... Hum... ok, but then how can I write a file with CRLF ? I tryed with TextWriter and added CRLF constant in each line and used Write() method but the result was the same. Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2012 #4 Use chr(13) & chr(10) instead of CRLF. CRLF is the end of line constant. Upvote 0