When you say DAT file, do you mean human-readable? If so, use CStdioFile and use its ReadString() and WriteString() methods to manipulate each line of the table (or each element, if you prefer). If you don't need it readable, you can Serialize() the table by making a CString of each line (or element) and using the insert operators (<< and >&gt to serialize each CString.

Is this what you wanted to know?