how to read and save data from and to a file?

as topic, is the program suppose to create the file themselves or do i need to create one?
i saw that but i couldnt do it. i want to store information that is push back from a vector of a class but it didnt work. is it suppose to create a file on its own if it were to work?

also to store data, am i using ifstream?
Show us the code that doesn't work.

ifstream means InputFileStream.

If you want to output data, try ofstream.
Topic archived. No new replies allowed.