Could somebody help me how to read data based on data length record. The data length record will be on first 4 bytes of the record. As example:-
Based on example, i have to read first 4 byte which is "0160" is the length record for record 1. After finish read record 1, then i have to read first 4 bytes again for the second length record and so on until its finish.00160AA090261666367739610000000032783210910000000029856331301060010529 +12574680529125801910000012003 300000150000181000009900400000000000000000000012000000001101600160AA09 +02616659377397100000000327816300100000000296378437010600105291252180 0529125817810000010303300006000006001000198000400000000000000000000012 +000000001101600145AA090201666337739809000000007278110810000000026764 1798010600105291257339052912584082000001900330000107000112100003960040 +0000000000000000000010160AA09026166647773991000000003272387001000000 0632983193101060010529125843405291258470100630111095000000400000610000 +03300400000000000000000000012000000000001600145AA0902016664077400090 000000043708188100000000267954007010600105
Otherwise, actually my data has a trailer and the trailer length is fixed to 40 byte. Do you have any ideas to skip 40 bytes at the end of record?
In reply to How to capture data length from the record ? by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |