I can not create text files that are readable by other programs such as Notepad (Windows).
I also tried to initialize TextWriter with a Encoding (Windows-1252 e other)
The various lines are ALWAYS separated by an LF [chr (10), hexadecimal A] and not by a CRLF
How can we succeed ?
Thanks for the attention
B4X:
Dim TW As TextWriter
TW.Initialize(File.OpenOutput(File.DirRootExternal,NomeFileLog,False))
TW.Writeline ("OziExplorer Track Point File Version 2.1")
TW.Writeline ("WGS 84")
TW.Writeline ("Altitude Is in Feet")
TW.Close
B4X:
'------------------------- CRLF
Dim TW As TextWriter
TW.Initialize(File.OpenOutput(File.DirRootExternal,NomeFileLog,False))
TW.Write ("OziExplorer Track Point File Version 2.1"&CRLF)
TW.Write ("WGS 84"&CRLF)
TW.Write ("Altitude Is in Feet"&CRLF)
TW.Close
B4X:
'------------------------- CR
Dim TW As TextWriter
dim CR as string
CR=chr(13)
TW.Initialize(File.OpenOutput(File.DirRootExternal,NomeFileLog,False))
TW.write ("OziExplorer Track Point File Version 2.1"&CR)
TW.Write ("WGS 84"&CR)
TW.Write ("Altitude Is in Feet"&CR)
TW.Close
I also tried to initialize TextWriter with a Encoding (Windows-1252 e other)
B4X:
TW.Initialize2 (File.OpenOutput (File.DirRootExternal,NomeFileLog, False), "Windows-1252")
How can we succeed ?
Thanks for the attention