thankgodfortektips
Programmer
Hey All,
I have to create a program that will read a binary file and save the data into an access db. I can sort out the saving to DB part but I just need to know how to read the binary file.
I have never done this before but was researching on the net and found this There is a sample project which when I run it, looks like it is reading the first field of the binary file. I have a complete table of the format of the binary file showing Field No, Data, Symbolic Field Name, No. of digits (nibbles), Field Values and field types, Offset (nibbles).
Here are the format of the first couple of fields.
*************************************
Field No|Data|Symbolic Field Name|No. Of Digits(Nibbles)|Field Values And Field Types|Offset (Nibbles)|
*************************************
1|RECORD CODE|RECCD|2|F7 HEX|0
2|ENTRY CODE|ENTRYCD|2|00 to 99 BCD|2
3|VERSION NO|VERINFO|4|00 to 99 BCD|4
....
*************************************
Could anyone either help me adapt the code from the link or help me with some code to read each field.
Thanks in advance!!!
I have to create a program that will read a binary file and save the data into an access db. I can sort out the saving to DB part but I just need to know how to read the binary file.
I have never done this before but was researching on the net and found this There is a sample project which when I run it, looks like it is reading the first field of the binary file. I have a complete table of the format of the binary file showing Field No, Data, Symbolic Field Name, No. of digits (nibbles), Field Values and field types, Offset (nibbles).
Here are the format of the first couple of fields.
*************************************
Field No|Data|Symbolic Field Name|No. Of Digits(Nibbles)|Field Values And Field Types|Offset (Nibbles)|
*************************************
1|RECORD CODE|RECCD|2|F7 HEX|0
2|ENTRY CODE|ENTRYCD|2|00 to 99 BCD|2
3|VERSION NO|VERINFO|4|00 to 99 BCD|4
....
*************************************
Could anyone either help me adapt the code from the link or help me with some code to read each field.
Thanks in advance!!!