vb.net - Read a matrix from a binary file -
i'm trying read 2 matrix binary file (256x256x2) couldn't without iterating 256x256x2 times takes long. want check data , make sure it's corect (not zeros). have:
dim msg string dim b(256 * 256 * 2) byte dim int32 dim reader new binaryreader(file.open(path, filemode.open)) b = reader.readbytes(b.length) = 0 b.length msg = msg & ", " & b(i) next textbox1.text = msg
the data on matrix numbers (0-255).
what's best way save data array, if possible format
array[matrixno][row][column]
because later need find specific values of array based on position.
ps. i'm using old visual studio 2003 because that's have available.
thanks
edit:
figured out taking long displaying bytes, problem solved!
almost 2 years later, it's time take off unanswered list.
the loop worked fine, problem printing every single value read instead of simpling saving variable.
lesson learned (long ago): printing takes time.
Comments
Post a Comment