Reading from and writing to same file
okay, hopefully this'll be my last question for the day. I got the hard part of my program done
Basically I'm writing a program that manages a database for a library. it's a data file in this format:
Title
Author
# of copies
Price (in dd.cc form)
what I need to do is be able to add a book to the database without overwriting. so I have two questions:
1) if I simply output the new book to the file will it overwrite the old one?
2) is there a way to send the cursor to the bottom of the file so it starts writing there without using getline?
sorry for starting so many threads today, but I need to get this done