Hi all, I was wondering if any of you could help me with saving data, overwriting already saved data, and loading data. I was hoping to use this for a project I'm working on which allows a person to make a quiz and then save it in one of 2 files. One for editing, and the other for actually using the quiz. Any of you have any ideas on how I can do this? I'm using 10 arrays for questions and answers and all my code is working.
you can use ofstream for writing the data to files and ifstream for reading data from them. the data which u have in the arrays can be stored in the files, each element followed by a space, the you can read them back using ">>" operator.