Hi. You could try to read the file using the old f-functions, like fopen, fgets, fclose. Read the data to a char[], and then assign it to the string. It might help. Principle: char buffer[300]; FILE * file = fopen("filename", "rt"); if(file != NULL) { while(fgets(buffer, 300, file) != NULL) { string = buffer; ..... Save it here } fclose(file); }