fariha
08-02-2003, 04:24 AM
hello all!
problem! im creating the database of a college in c++. it contains records of students. im using file handling for this purpose. i write the data on the file using xyz.write and i used xyz.read to read the data, but if i enter over 1 record, and then read the data i have stored, it simply shows me the last record i entered. i suppose the data i enter gets over written. there is an append mode for this purpose, to add to existing file and not over write it. it looks something like this: "ios::app", but where exactly in the program do i use this? can i use it anywhere with the xyz.write function?
plz help, URGENT
problem! im creating the database of a college in c++. it contains records of students. im using file handling for this purpose. i write the data on the file using xyz.write and i used xyz.read to read the data, but if i enter over 1 record, and then read the data i have stored, it simply shows me the last record i entered. i suppose the data i enter gets over written. there is an append mode for this purpose, to add to existing file and not over write it. it looks something like this: "ios::app", but where exactly in the program do i use this? can i use it anywhere with the xyz.write function?
plz help, URGENT