Starter.raf.Initialize(File.DirDocuments, "file.txt", False)
Dim lst As List = Starter.raf.ReadB4XObject(Starter.raf.CurrentPosition)
Starter.raf.Close
In B4i I have to rebuild "raf" the object every time, otherwise it crashes.
B4X:
Dim raf As RandomAccessFile
raf.Initialize(File.DirDocuments, "file.txt", False)
Dim lst As List = raf.ReadB4XObject(raf.CurrentPosition)
raf.Close
So I have no problem, I've only wondered because in B4a, without re-dimensioning the variable, it does not make any problems.
Question, after "raf.Initialize" the current position "raf.CurrentPosition" should not be zero?