johncarney / pikelet

A simple flat-file database parser.
MIT License
1 stars 4 forks source link

I made a table for the HOT format. #1

Closed garrow closed 10 years ago

garrow commented 10 years ago
0...3 3...11 11...13 11.. -1
BFH 00000001 01 LONZZZ 203TEST1101022359GB000001
BCH 00000002 02 0111101007F110107
BOH 00000003 03 91200001101031 GBP2
BKT 00000004 06 000001 011X ZZZ
johncarney commented 10 years ago

It's kind of ok, but I don't like the way it chomps the leading & trailing whitespace.

johncarney commented 10 years ago

How about doing it this way?

|BFH|00000001|01|LONZZZ  203TEST1101022359GB000001        |
|BCH|00000002|02|0111101007F110107                        |
|BOH|00000003|03|91200001101031                       GBP2|
|BKT|00000004|06|      000001                    011X ZZZ |
johncarney commented 10 years ago

I'm going with my suggestion. Also, that section is now redundant and I've removed it..