python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does fstream create a file in the executable location?
I am making a C++ program in fstream and I have noticed that my program makes a file where the executable file is located.
I have made 2 folders, bin and src. src has main.cpp:
#include <fstream>...
scienclocode
Votes: 0
Answers: 1
how does getline() read a multiple-line file in loops?
I have some confusion about the use of std::getline function. see the following code:
#include <sstream>
#include <string>
std::ifstream ifs(filename);
std::string line;
while (std::getli...

kaiyu wei
Votes: 0
Answers: 1
Load file using C++ std::ifstream.getline() in Android
I'm struggling with reading file stream inside Android environment using C++ library.
I believe I set all the permissions correctly (1st figure) and I'm getting the file path using Android internal li...
Bicycle-riding Dog
Votes: 0
Answers: 1
C++ std::istream to read from file
I am completely new to the c++ and I have problem with managing input. I have a program where I want to be possible to read input from console but also from the file.
I have class with private field s...

Riomare
Votes: 0
Answers: 2