file handling

i am making a program which takes care of all the details of a student using file handling.is it advisable to use different files for different student?i mean do i need to create a different text document for different student?and if yes wont it create any problem if the number of students are large?and if no,how can i switch over to different student's data in the same file?
Both methods have been employed.
However, I recommend you to using a single file.

Google around "object serialization" and overloading the insertion and extraction operators (<< and >>) and load and save your data in a STL container of some sort, like a deque or a set.

Good luck!
Topic archived. No new replies allowed.