Hello I have "TRESIM.DAT" files. And it has a 10byte data.
(data="TC}Ñ╩12#╣A" )
After, I want to add 5byte data. (bytes =ASDFGH)
(new file "TRESIM.DAT" = data+bytes = "TC}Ñ╩12#╣AASDFGH")
and save this file . But I cant it.
How can it
(data="TC}Ñ╩12#╣A" )
After, I want to add 5byte data. (bytes =ASDFGH)
(new file "TRESIM.DAT" = data+bytes = "TC}Ñ╩12#╣AASDFGH")
and save this file . But I cant it.
How can it
B4X:
Dim raf As RandomAccessFile
raf.Initialize(File.DirRootExternal, "TRESIM.dat", False)
s=raf.Size
'*** bytes=ASDFGH
raf.WriteBytes(bytes,0,bytes.Length-1,raf.CurrentPosition)
raf.Close