Dim raf As RandomAccessFile
raf.Initialize(File.DirRootExternal, "1.dat", False)
Dim i As Int
i = raf.ReadInt(12) 'reads an integer stored in the 12 position.
Dim buffer(1024) As Byte
raf.ReadBytes(buffer, 0, 100, 1000) 'reads 100 bytes starting at position 1000
Dim s As String
s = BytesToString(buffer, 0, 100, "UTF-8") 'convert the bytes to string