Dim Writer As TextWriter
Writer.Initialize(File.OpenOutput(File.DirDefaultExternal, "1.txt", False))
Writer.WriteLine("This is the first line.")
Writer.WriteLine("This is the second line.")
Writer.Close
when i upload the file to the pc and open it in notepad all text shows in one line
Yes. Android (linux) end of line character is chr(10). Windows end of line characters are chr(13) & chr(10).
You can change your code to:
B4X:
Writer.Write("..." & chr(13) & chr(10))
Or you can download a more powerful text editor like notepad++ (highly recommended): Notepad++ | 5.9
This editor knows how to deal with different formats and it also shows you the actual characters.
Yes. Android (linux) end of line character is chr(10). Windows end of line characters are chr(13) & chr(10).
You can change your code to:
B4X:
Writer.Write("..." & chr(13) & chr(10))
Or you can download a more powerful text editor like notepad++ (highly recommended): Notepad++ | 5.9
This editor knows how to deal with different formats and it also shows you the actual characters.