Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/wsjcpp_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,20 +275,20 @@ bool WSJCppCore::makeDir(const std::string &sDirname) {
std::cout << "FAILED create folder " << sDirname << std::endl;
return false;
}
std::cout << "nStatus: " << nStatus << std::endl;
// std::cout << "nStatus: " << nStatus << std::endl;
return true;
}

// ---------------------------------------------------------------------

bool WSJCppCore::writeFile(const std::string &sFilename, const std::string &sContent) {

std::ofstream f(sFilename, std::ifstream::in);
// std::ofstream f(sFilename, std::ifstream::in);
std::ofstream f(sFilename, std::ios::out);
if (!f) {
std::cout << "FAILED could not create file to wtite " << sFilename << std::endl;
WSJCppLog::err("WSJCppCore", "Could not create file to write '" + sFilename + "'");
return false;
}

f << sContent << std::endl;
f.close();
return true;
Expand Down
7 changes: 4 additions & 3 deletions wsjcpp.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

wsjcpp: 1.0.0
wsjcpp_version: v0.0.1
cmake_cxx_standard: 11
cmake_minimum_required: 3.0

Expand All @@ -8,7 +8,8 @@ version: 0.0.1
description: Basic Utils for wsjcpp
issues: https://github.com/wsjcpp/wsjcpp-core/issues
repositories:
- "https://github.com/wsjcpp/wsjcpp-core"
- type: main
url: "https://github.com/wsjcpp/wsjcpp-core"
keywords:
- c++
- wsjcpp
Expand All @@ -35,4 +36,4 @@ unit-tests:
files:
- unit-tests/src/main.cpp
- unit-tests/src/unit_tests.h
- unit-tests/src/unit_tests.cpp
- unit-tests/src/unit_tests.cpp