I'm trying to understand what happen when someone try to write to a file the next way:
q)h:hopen `:out
q)h (1 2;3)
3i
q)hclose h
q)read1 `:out
0x07000200000001000000000000000200000000000000f90300000000000000
this is not the same as a binary representation:
q)-8!(1 2;3)
0x010000002d00000000000200000007000200000001000000000000000200000000000000f90300000000000000
- in which data format
(1 2;3)was written into:out? - is there a way to read data from it back? - like
-9!-8!(1 2;3) - how
set/getrelated to these binary data formats? - do they use another 3-rd different binary data format?
Technically you can read the object if you have a little prior knowledge about the object, such that you can fabricate a header:
The header here is comprised of:
As rianoc pointed out, there are better ways to write such objects such that they can be more easily read without requiring advanced knowledge