by Matt » April 22, 2005, 2:54 pm
Right now, the message has the header info and then two new lines and then the data. Could it be that the header is also terminated by the * to make it easier for parsing?
If the message could be changed to that, then I could read the FILE header until I see the * line with a generic reader and then switch to another reader for the file handling a lot easier. Otherwise, I have to detect it's a FILE header and try to handle it while I'm still reading the header. Doable, but less enjoyable.
Right now, the message has the header info and then two new lines and then the data. Could it be that the header is also terminated by the * to make it easier for parsing?
If the message could be changed to that, then I could read the FILE header until I see the * line with a generic reader and then switch to another reader for the file handling a lot easier. Otherwise, I have to detect it's a FILE header and try to handle it while I'm still reading the header. Doable, but less enjoyable.