QFile file("E:/Qt/MyDemo/hhh/debug/hero.txt");
if(!file.open(QIODevice::Append | QIODevice::Text)){
qDebug("fail");
}
QTextStream write(&file);
write<<"text"<<endl;
file.close();
QFile file("E:/Qt/MyDemo/hhh/debug/hero.txt");
if(!file.open(QIODevice::Append | QIODevice::Text))