Read/Write a binary variable length sequential file in C
Help!!!!! Well here is the deal, Ive been a COBOL coder for my entire career. I now work for a new company that has asked me to pick up a C book and become an expert in one week! Hooraaa! My first assignment is to read in a binary variable length file (which has yet to be defined) and then write it back out, (which has yet to be defined).... So at least I am trying to figure out how to read this type of structure in and how to write it back out and I will plug in the details later. Trouble is I can't find any definitive info on how to do this, or it is staring me right in the face and I don't understand it (probably this one). Can anyone cut/paste an example of this for me? I'm not sure if I should be using seeks or scans or what the heck I should do... :confused: :confused: :confused: