Dim i As Int
Dim ByteArr(10000) As Byte
Dim OutFile As RandomAccessFile
For i=0 To ByteArr.Length-1
ByteArr(i)=1
Next
Dim nowTime As Long
If File.Exists(File.DirDefaultExternal,"test.bin") Then
File.Delete(File.DirDefaultExternal,"test.bin")
End If
OutFile.Initialize2(File.DirDefaultExternal,"test.bin",False,True)
nowTime=DateTime.Now
'OutFile.WriteBytes(ByteArr,0,ByteArr.Length,0)
OutFile.WriteObject(ByteArr,False,0)
'For i=0 To ByteArr.Length-1
' OutFile.WriteByte(ByteArr(i),OutFile.Size)
'Next
OutFile.Flush
OutFile.Close
Log(DateTime.Now-nowTime)