I’m reading a multi-dimensional char array from a file
char pszBillToAddress[3][31];
Each row of this array holds a line of an address, and ultimately I need to separate all of the components into separate strings for Address, City, State, and Zip, but for now getting each row into its own CString is my goal. What would be a good way to go about doing this? Use a for loop to append all the characters in a row to a CString?
Assuming that those are truly zero terminated strings. If there’s any possibility that they will be filled to the end of the array with characters and the null terminator is missing, you’ll need a different approach.