R
Robert
I am trying to read from a input data file and I am having trouble and
ending up with another read at the eof that is garbage. I know that I
shouldn't use while(!eof) but I am pre-loading my input from the file
before even entering my while loop so that if the file is empty the
eof will work. The file that I am trying to read and parse is
generated by another parties software so I have no control over how
the file is arranged. Their setup writes directly to the file a
16byte data block that consists of 7 different variables of differing
length. The data is not delimited at all. Is there an easy way of
pulling in the 16 byte long block and ending at the end of the file
without using multiple conditional statements. Normally, when posting
to a newsgroup I include my code, but for this I have tried several
different approaches and nothing has really worked so it seems
pointless to include lots of code that hasn't functioned properly.
ending up with another read at the eof that is garbage. I know that I
shouldn't use while(!eof) but I am pre-loading my input from the file
before even entering my while loop so that if the file is empty the
eof will work. The file that I am trying to read and parse is
generated by another parties software so I have no control over how
the file is arranged. Their setup writes directly to the file a
16byte data block that consists of 7 different variables of differing
length. The data is not delimited at all. Is there an easy way of
pulling in the 16 byte long block and ending at the end of the file
without using multiple conditional statements. Normally, when posting
to a newsgroup I include my code, but for this I have tried several
different approaches and nothing has really worked so it seems
pointless to include lots of code that hasn't functioned properly.