mirror of
https://github.com/Adaptix-Framework/AdaptixC2
synced 2026-06-08 10:20:39 +00:00
Client: Add LogonUI & Storage
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <Utils/FileSystem.h>
|
||||
|
||||
QString ReadFileString(const QString &filePath, bool* result) {
|
||||
QFile file(filePath);
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
*result = false;
|
||||
return QString();
|
||||
}
|
||||
|
||||
QTextStream in(&file);
|
||||
QString content = in.readAll();
|
||||
file.close();
|
||||
|
||||
*result = true;
|
||||
return content;
|
||||
}
|
||||
Reference in New Issue
Block a user