haddad Member Licensed User Longtime User Dec 16, 2017 #1 Hello I want to write in a file but I always have the last text that replaces the first ! How could I do? Help me plz
Hello I want to write in a file but I always have the last text that replaces the first ! How could I do? Help me plz
Harris Expert Licensed User Longtime User Dec 17, 2017 #2 B4X: Dim TextWriter1 As TextWriter TextWriter1.Initialize(File.OpenOutput(File.DirRootExternal, "Test.txt", True)) ' set last param to true to append to the existing file... For i = 1 To 10 TextWriter1.WriteLine("Line " & i) Next TextWriter1.Close Upvote 0
B4X: Dim TextWriter1 As TextWriter TextWriter1.Initialize(File.OpenOutput(File.DirRootExternal, "Test.txt", True)) ' set last param to true to append to the existing file... For i = 1 To 10 TextWriter1.WriteLine("Line " & i) Next TextWriter1.Close