First : sizeof(QString) is NOT string length, this is a size of object. Code for writing should be :Second : strings have different lengths. If you save them without any separator how you split them later?Qt Code:
for( int i = 0; i <125; i++ ) namef.write(names.toAscii());To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks