I tried to write more lines in .txt file with function WriteLine, but the result is a txt file with only one line.
This is an example of what i want to do:
I tried also:
But the result is the same, all strings are written in only one line
This is an example of what i want to do:
B4X:
Dim f As TextWriter
f.Initialize(File.OpenOutput("C:\Users\user01\Desktop","a.txt",True))
f.WriteLine("1")
f.WriteLine("2")
f.WriteLine("3")
f.Close
I tried also:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
Dim st() As String = Array As String("1","2","3")
For i = 0 To st.Length-1
Write(st(i))
Next
End Sub
Sub Write(tx As String)
Dim f As TextWriter
f.Initialize(File.OpenOutput("C:\Users\user01\Desktop","a.txt",True))
f.WriteLine(tx)
f.Close
End Sub
But the result is the same, all strings are written in only one line