File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -275,20 +275,20 @@ bool WSJCppCore::makeDir(const std::string &sDirname) {
275
275
std::cout << " FAILED create folder " << sDirname << std::endl;
276
276
return false ;
277
277
}
278
- std::cout << " nStatus: " << nStatus << std::endl;
278
+ // std::cout << "nStatus: " << nStatus << std::endl;
279
279
return true ;
280
280
}
281
281
282
282
// ---------------------------------------------------------------------
283
283
284
284
bool WSJCppCore::writeFile (const std::string &sFilename , const std::string &sContent ) {
285
285
286
- std::ofstream f (sFilename , std::ifstream::in);
286
+ // std::ofstream f(sFilename, std::ifstream::in);
287
+ std::ofstream f (sFilename , std::ios::out);
287
288
if (!f) {
288
- std::cout << " FAILED could not create file to wtite " << sFilename << std::endl ;
289
+ WSJCppLog::err ( " WSJCppCore " , " Could not create file to write ' " + sFilename + " ' " ) ;
289
290
return false ;
290
291
}
291
-
292
292
f << sContent << std::endl;
293
293
f.close ();
294
294
return true ;
Original file line number Diff line number Diff line change 1
1
2
- wsjcpp : 1 .0.0
2
+ wsjcpp_version : v0 .0.1
3
3
cmake_cxx_standard : 11
4
4
cmake_minimum_required : 3.0
5
5
@@ -8,7 +8,8 @@ version: 0.0.1
8
8
description : Basic Utils for wsjcpp
9
9
issues : https://github.com/wsjcpp/wsjcpp-core/issues
10
10
repositories :
11
- - " https://github.com/wsjcpp/wsjcpp-core"
11
+ - type : main
12
+ url : " https://github.com/wsjcpp/wsjcpp-core"
12
13
keywords :
13
14
- c++
14
15
- wsjcpp
@@ -35,4 +36,4 @@ unit-tests:
35
36
files :
36
37
- unit-tests/src/main.cpp
37
38
- unit-tests/src/unit_tests.h
38
- - unit-tests/src/unit_tests.cpp
39
+ - unit-tests/src/unit_tests.cpp
You can’t perform that action at this time.
0 commit comments