The DSTU X9.37 - 2003 file is comprised of variable length records.
Swastik
"...each record is prefixed by a four byte size (big endian)." <- that info might related with what you get. Read this first to fully understand how the file is built > http://www.x937.com/ [edit] actually not that much info there tooSree Lekshmi wrote:if i m reading the file with InputStream like the code i mentioned above, it is showing some extra characters..
Beware of that part, that could be tricky.x937.com wrote:While each record has a type, but there is a twist, the type doesn't completely define the definition of the record, some records also get their definition from other parts of the record data. (Technically, this is a bad design because it mixes interface and implementation, and is discouraged today, but this format is derived from historical formats).
Sree Lekshmi wrote:want to read the record type in 1-2 position
Sree Lekshmi wrote:What if i want to read all records(20,52,26.25) ,I cannot write a generic code to read the position if it is not coming in same position right?