Skip to content
Closed
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
4 changes: 2 additions & 2 deletions FileContentsServerApp/src/FileContentsServerDriver.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -105,7 +105,7 @@ asynStatus FileContentsServerDriver::saveFile()
// Write the contents of buffer to a file
try
{
std::ofstream outfile(fullFileName, std::ios::trunc | std::ios::binary); // Open in write mode
std::ofstream outfile(fullFileName, std::ios::trunc); // Open in write mode
if (outfile.is_open())
{
outfile << buffer;
Expand DownExpand Up@@ -193,7 +193,7 @@ void FileContentsServerDriver::readFile()
logMessage(std::string("Reading file ") + fullFileName);
try
{
f.open(fullFileName, std::ios::binary);
f.open(fullFileName);
if (!f.is_open())
{
m_original_lines_array = "";
Expand Down