View Single Post
  #1 (permalink)  
Old August 9th, 2008, 05:45 AM
code_lover code_lover is offline
Authorized User
 
Join Date: Jan 2007
Posts: 46
Thanks: 2
Thanked 1 Time in 1 Post
Default 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
Reply With Quote