StackOverflow Questions for Tag: ofstream

Nack
Nack

Reputation: 1366

Trying to use ofstream to write some basic text data

Score: 0

Views: 990

Answers: 3

Read More
Tom
Tom

Reputation: 115

What is the difference between ifstream, ofstream and fstream?

Score: 7

Views: 38084

Answers: 3

Read More
Alma Latina
Alma Latina

Reputation: 3

Why the following code works, but if I add "fin.exceptions(ifstream::badbit | ifstream::failbit);" to make the second try/catch work, I get an error?

Score: 0

Views: 93

Answers: 1

Read More
alson
alson

Reputation: 59

Writing Text Data To File using ofstream from a function

Score: 0

Views: 433

Answers: 1

Read More
EdwardTheTrain
EdwardTheTrain

Reputation: 45

Disappearing content c++ writing to file

Score: 3

Views: 173

Answers: 1

Read More
Zephirus Gandor
Zephirus Gandor

Reputation: 1

std::ofstream opens when debugging in debug configuration, but not when in release configuration (Visual Studio 2022)

Score: -3

Views: 97

Answers: 1

Read More
nhtrnm
nhtrnm

Reputation: 1617

Does ofstream close its files automatically?

Score: 19

Views: 30666

Answers: 2

Read More
stillQuestioning
stillQuestioning

Reputation: 153

Issue with ofstream class instance not compiling

Score: 0

Views: 39

Answers: 0

Read More
kubraisik
kubraisik

Reputation: 11

How can I write my char* pointer to files with always in utf8 format?

Score: 0

Views: 167

Answers: 1

Read More
User1953
User1953

Reputation: 191

ofstream and fprintf both limits files to print only 5 lines of data

Score: 0

Views: 57

Answers: 1

Read More
jhourback
jhourback

Reputation: 4571

How to get the size of the buffer in std::ofstream?

Score: 0

Views: 365

Answers: 0

Read More
psb
psb

Reputation: 402

Substitute std::ofstream's underlying rdbuf with std::stringstream's underlying rdbuf

Score: 0

Views: 277

Answers: 1

Read More
xian
xian

Reputation: 4703

How does one write the hex values of a char in ASCII to a text file?

Score: 17

Views: 47812

Answers: 7

Read More
Michael
Michael

Reputation: 38

Is there a way to make portable file creation?

Score: 0

Views: 144

Answers: 1

Read More
Ankit Bhardwaj
Ankit Bhardwaj

Reputation: 89

Trying to create a dynamic csv file based on UTC time

Score: 0

Views: 66

Answers: 1

Read More
TZV
TZV

Reputation: 19

Creating a print file

Score: 0

Views: 62

Answers: 1

Read More
m_alpha
m_alpha

Reputation: 134

How to handle ofstream object in case of application crash

Score: 3

Views: 171

Answers: 1

Read More
youni
youni

Reputation: 1

Why this C++ program can't get the output in the text file?

Score: -1

Views: 99

Answers: 1

Read More
OrenIshShalom
OrenIshShalom

Reputation: 7162

Open an ofstream with tilde (~) in path name

Score: 7

Views: 4547

Answers: 3

Read More
arun49 vs
arun49 vs

Reputation: 629

"Incomplete type not allowed " when creating std::ofstream objects

Score: 59

Views: 68182

Answers: 1

Read More
PreviousPage 2Next