Read record, write record, seek

DOM85

Active Member
Licensed User
Longtime User
Hi,
I have to manage large files, reading and writing datas from anywhere in files. Is it possible to SEEK inside a file and to read or update some bytes or records?

Thank you for your help.
 

DOM85

Active Member
Licensed User
Longtime User
Yes, with the RandomAccessFile library.
However I recommend you to consider using SQLite instead. It supports very large files and it is very fast.

Thank you Erel for this help! I am going to see RandomAccessFile library.

Yes i know that SQL is accessible under B4A. But i have my own indexed file management routines, already implemented on Windows mobile and on PIC microcontroler. In addition they are very faster than SQL.
Today i make a full B4A portage of my applications dedicated to blind persons (Petit Poucet GRAND RAID and MOBILE READER).

Thank you again for your invaluable help.
 
Upvote 0
Top