summaryrefslogtreecommitdiff
path: root/src/IOFileClass/FileManIOFile.cpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-12 11:57:04 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-12 11:57:04 +0200
commit1ac5203e386e80f80906a341bf7ae9eaa124d774 (patch)
tree23a58df3715d9e038d67efb020fb8153c53145ab /src/IOFileClass/FileManIOFile.cpp
parent77b0d85a517d64c2bfb50884051072be4476888f (diff)
Switch to CMake ...
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));