StackOverflow Questions for Tag: fstream

joler
joler

Reputation: 37

Separating blank spaces from getline vs cin >> string

Score: 0

Views: 102

Answers: 1

Read More
cweston
cweston

Reputation: 11647

std::ofstream, check if file exists before writing

Score: 38

Views: 89415

Answers: 6

Read More

Why is the "for" cycle not creating multiple files?

Score: 0

Views: 71

Answers: 2

Read More
dchochan
dchochan

Reputation: 423

how to correctly write vector to binary file in c++?

Score: 32

Views: 77858

Answers: 4

Read More
Janiferi
Janiferi

Reputation: 1

C++ writing and reading last line of file

Score: -1

Views: 170

Answers: 1

Read More
Gilson PJ
Gilson PJ

Reputation: 3600

ofstream writes null characters on a file in binary mode

Score: 0

Views: 753

Answers: 3

Read More
huk 30
huk 30

Reputation: 11

How do I find my new created txt folder using fstream in a project folder that Visual Studio created?

Score: 1

Views: 47

Answers: 0

Read More
CS Student
CS Student

Reputation: 33

Why does fstreams have 1 cursor for both read & write? (Logically and technically)

Score: 0

Views: 27

Answers: 0

Read More
Pavel
Pavel

Reputation: 342

About writing/reading "\r\n" to/from a file

Score: 0

Views: 98

Answers: 1

Read More
Trauer
Trauer

Reputation: 2101

Why std::fstream::write() modifies tellg()?

Score: 5

Views: 118

Answers: 1

Read More
user25745846
user25745846

Reputation: 7

I can't write a string variable to my file using fstream

Score: -3

Views: 70

Answers: 1

Read More
Lucas Farleigh
Lucas Farleigh

Reputation: 1188

How do I print out the contents of a file? C++ File Stream

Score: 23

Views: 106190

Answers: 3

Read More
KendallBoesch
KendallBoesch

Reputation: 11

terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::at: __n (which is 0) >= this->size() (which is 0)

Score: 1

Views: 350

Answers: 0

Read More
BD at Rivenhill
BD at Rivenhill

Reputation: 12973

How to construct a c++ fstream from a POSIX file descriptor?

Score: 120

Views: 71186

Answers: 9

Read More
user18453148
user18453148

Reputation:

i am trying to use getline to read a csv file line by line and separate the data in the file and turn a string into int

Score: 0

Views: 507

Answers: 2

Read More
Marcell
Marcell

Reputation: 255

Opening file with fstream

Score: 0

Views: 67

Answers: 0

Read More
einpoklum
einpoklum

Reputation: 132128

Should I prefer using basic_istream::tellg() or filesystem::file_size()?

Score: 1

Views: 127

Answers: 2

Read More
Moe98
Moe98

Reputation: 11

fstream get() function returns weird values

Score: 0

Views: 49

Answers: 0

Read More
srstafion
srstafion

Reputation: 11

Overwrite the first line, add new ones after it in the file

Score: -1

Views: 58

Answers: 3

Read More
Tacke
Tacke

Reputation: 3

Trouble opening an fstream file in c++ (Newbie)

Score: 0

Views: 81

Answers: 1

Read More
PreviousPage 2Next