posted 19 years ago
i need to use a file to save info about reservations. if someone makes a reservation I would add the following info to the file:
reservationNumber, flightNumber, numberOfSeats
now, i'm going to be searching this file a lot and reading info about various reservations. I'm also going to be deleting entries from it based on the reservationNumber (ie, cancel reservation 001 would mean search through file for reservation 001 then delete that line).
What sort of file should I use for this? Does anyone have any code to get me started?
J