Hello,
use this code to write log events of my app on file
this works well thus special adds a new row at the end of file
is there a way to affiungere new riche beginning of the file?
in order to have the latest events at the top and not at the end?
thanks
Fabio
use this code to write log events of my app on file
this works well thus special adds a new row at the end of file
is there a way to affiungere new riche beginning of the file?
in order to have the latest events at the top and not at the end?
thanks
Fabio
B4X:
Sub LogWrite(EventsLog As String)
Log(EventsLog)
Dim TextWriter1 As TextWriter
TextWriter1.Initialize(File.OpenOutput(File.DirInternal, "MyLog.log", True))
TextWriter1.WriteLine("- " & EventsLog)
TextWriter1.Close
End Sub