File pointer

ukimiku

Active Member
Licensed User
Longtime User
Is there a way to control the position of the file pointer (an index into a file) byte-wise? After writing, say, 100 bytes to a file, I would like to "rewind" 10 bytes back from the current writing position in the outputfile, then advance by, say, 5 bytes, and read the byte that is there or replace it with a new value.

How can this be done in B4A? The search didn't yield anything useful. I have only found that I can use "WriteBytes" with an OutputStream to write an array of bytes.

Thanks.

Regards,
 

ukimiku

Active Member
Licensed User
Longtime User
Merci. Strange how I missed that.

Regards,
 
Upvote 0
Top