Hi List,
I am writing an importer for IGES[initial graphics exchange specification] and I am reading the data in strings. Now I want to break the string data into smaller pieces. I tried using string::copy for this. But ran into HEAP allocation errors. So, I was wondering if there are any alternate ways by which this can be achieved ? One is string::substr another is string::at. Which is the best method to use in such situation ?
The File contains the data in free format and is ascii.
Regards,
Atul
string::copy requires you to allocate a char[]. string::substr should do what you want. string::at only returns one char and does the same as operator[].