I'm confused as to which method to use. I simply need to write 32 bytes from an array to a file on a Windows PC from B4J.
I think RandomAccessFiles is the way to do that. I can't seem to get a file written using WriteBytes. - raf.WriteBytes(MyBuf,0,32,0)
Is there a tutorial somewhere I have missed?
This code is no longer needed. Use File.WriteBytes / ReadBytes. Write an array of bytes to a file and read a file into an array of bytes. Sub BytesToFile (Dir As String, FileName As String, Data() As Byte) Dim out As OutputStream = File.OpenOutput(Dir, FileName, False)...