File I/O Operations in C++
I am developing a ticket reservation system in C++. All information will be stored in a flat file.I have the following tasks:
1. Create Reservation
2. Search Reservation
3. Update Reservation
4. Delete Reservation
Now i have done the 1st task i.e. to create reservation. Now i a, required to search a specific string(reservation number) in my file so that i can retrieve the relevant information.
Could someone guide me here on how to search a record in a text file usinf the fstream.h library? Please provide a code example, thanks.
MAXOOD!
Life is an endless journey towards perfection
__________________
MAXOOD!
Life is an endless journey towards perfection
|