reading String from binary files
Hi,
im almost new in Qt! how can i read Strings from Binary files? (Strings which i already saved in binary file)
this is part of my code that writes data(String) to bin file, you see:
Code:
out<<ui->Pass_signUp->text()<<"$"<<ui->User_signUp->text();
file.close();
thanks in advance,
Re: reading String from binary files
Are you sure you know what you are doing? QDataStream is a serialization mechanism, not a general purpose binary stream. If you insist on using it then simply reverse the direction of streaming operators (of course read to variables and then set them on the widgets).