关于GTK和QT的移植问题
我在手机上写了个程序,想删除一些中文文件名的文件,
假设 Qsting fname;
那么,用什么函数能删除?需要什么头文件件?
要是fname是一个目录呢?能把里面的东西都删除吗?(目录有可能是空的)
不会QT,不会C++,以前的GTK用不上了
假设 Qsting fname;
那么,用什么函数能删除?需要什么头文件件?
要是fname是一个目录呢?能把里面的东西都删除吗?(目录有可能是空的)
不会QT,不会C++,以前的GTK用不上了
作者: lovekid 发布时间: 2010-06-26
bool QDir::remove ( const QString & fileName )
Removes the file, fileName.
Returns true if the file is removed successfully; otherwise returns false.
Removes the file, fileName.
Returns true if the file is removed successfully; otherwise returns false.
作者: fp862 发布时间: 2010-06-29
bool unlink(char* filepath);
作者: slax 发布时间: 2010-07-10