Private fs As ESP8266FileSystem
Public ser As B4RSerializator
Public bc As ByteConverter
Dim b(1024) As Byte 'buffer array
dim filename as string = "/info"
fs.OpenRead(filename)
Dim size As ULong = fs.CurrentFile.Size
Dim readsize As Int = fs.Stream.ReadBytes(b, 0, size)
'the data that's read into byte array b is 32 bytes in length, it was a previously serialized object array
'to convert back to object array properly
Dim buf(3) As Object
Dim obj_a() As Object
obj_a = ser.ConvertBytesToArray(bc.SubString2(b,0,readsize),buf) '<-convert back to object array