Qt text and data flow

Qt file types into a text file (you can read the contents of a text character) with the data file (binary data).

  Note: For a computer for all of the files are binary data.

QFile directly supports read and write text files and data files.

 

 

 

 

QTextStream text(&file);
 QDataStream text(&file);

 

  

Guess you like

Origin www.cnblogs.com/hjxzjp/p/12339751.html