Posted on 1998-11-17
Here is what i am doing:
I need to work with intel hexa files. this files are composed by intel hexa lines ( each hexa line is a line in the file) and is terminated by a special line.
I have created one CIntelHexaLine object for treating lines and one CIntelHexaDoc for the file. My doc has one CtypedPtrArray of CIntelHexaLine.
The problem is serialization.
My intel line is saved as a CString in CIntelHexaLIne and i think i can not serialize CString objects?
Also for opening i am searching the end of a line. Isn´t there a way of reading files line by line?
My serialization in the document is passing the work for the CIntelHexaLine Serialization. The termination condition (in serialization doc) is the line reading==end line. But if the file is corrupted and the end line never occurs? Does the >> operator triggers any exception if there is nothing else to read?
Thanks a lot for any comments/answers you can give me.