I am trying to read a binary (HPGL/2) file that has some header info.
I need to be able to read the header info and know where it starts and ends. It always starts with "BGMF" and ends with "ENDMF;"
here is a bit of the code
dim strBuf as string
Open strFile For Input As #intFreeFile
Input #intFreeFile, strBuf
If I do this I get everything from one comma "," to the next. unfortunaly the header info uses semicolons ";" to denote then end of any statement.
if I use:
Line Input #intfreefile, strBuf
Then I get the whole file becasue there are no chracter returns in the header info.
what I would really like is to get one statement at at time seperated by Semicolons ";" or an 'Input' command that buffer by something other than commas
BTW - I am using VB6 and my ultimate goal here is to strip out all the Header info