This is what happens after reading binary files with JSL:
It's segmented by 12 bytes
b = Load Text File( "……\abc.spr", blob() );
Thanks Experts!
I would guess using Blob Peek and loop should work. There might also be additional ideas in Importing Binary Data with JSL (2022-EU-45MP-946)
For example, regular substitution with EmEditor is easy to implement
There are only two choices. BlobPeek() and LoadTextfile(... , BLOB( ReadOffsetFromBegin(), ReadLength() ) ).
Using BlobPeek multiple times is faster than calling LoadTextfile multiple times.
What efficiency concern do you have? How big is the blob? How slow is it?
Thanks!
Well, it looks like it can only be done in a circular way.There are many such files that need to be written to the JMP table.Want to increase speed.I wrote JSL
b = Load Text File( ……|| "abs.spr", blob() ); s = Length( b ) / 12; ar = []; ar = J( s, 5, . ); For( k = 1, k <= s, k++, a = Blob Peek( b, (k - 1) * 12, 12 ); ar[k, 3] = Blob To Matrix( a, "int", 4, "little", 8 )[1, 1]; ar[k, 4] = Blob To Matrix( a, "int", 4, "little", 8 )[1, 2]; ar[k, 5] = Blob To Matrix( a, "float", 4, "little", 8 )[1, 3]; );
If it is able to implement segmentationDoes this code increase speed?