From c4dee49b969f5fe539d9f68bc863e1cd58d54012 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Mon, 10 Aug 2015 14:17:32 +0200 Subject: changed file path to be multiplatform --- CommandLineInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CommandLineInterface.cpp') diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index ff70616a..a5ad07d7 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -303,7 +303,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da // create directory if not existent fs::path p(m_args["output-dir"].as()); fs::create_directories(p); - ofstream outFile(m_args["output-dir"].as() + "/" + _fileName); + ofstream outFile((p / _fileName).string()); outFile << _data; if (!outFile) BOOST_THROW_EXCEPTION(FileError() << errinfo_comment("Could not write to file: " + _fileName)); -- cgit v1.2.3