summaryrefslogtreecommitdiff
path: root/src/IOFileClass/FileManIOFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/IOFileClass/FileManIOFile.cpp')
-rw-r--r--src/IOFileClass/FileManIOFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IOFileClass/FileManIOFile.cpp b/src/IOFileClass/FileManIOFile.cpp
index ea49201..3b45b0b 100644
--- a/src/IOFileClass/FileManIOFile.cpp
+++ b/src/IOFileClass/FileManIOFile.cpp
@@ -35,7 +35,7 @@ void FileManIOFile::read(std::string key){
this->data.clear();
//Open file
- file.open (this->filename, std::ios::in | std::ios::binary);
+ file.open ((this->filename).c_str(), std::ios::in | std::ios::binary);
//Get MD5 of decrypted data
byte fileMD5[16];
@@ -124,7 +124,7 @@ void FileManIOFile::writeRoutine(std::string data, std::string dataEncrypted){
std::ofstream file;
//Open it
- file.open(this->filename, std::ios::out | std::ios::binary);
+ file.open((this->filename).c_str(), std::ios::out | std::ios::binary);
//Write MD5 on 16 first bytes
file.write((char *) digest,sizeof(digest));