|
-
October 31st, 2010, 06:03 PM
#1
Extracting a line from content in the line
Hey guys, I'm trying to write an address book program using structs that will give the user three options. They can either add a name, telephone number, and address to the phone book (all of which will appear on the same line, separated by spaces), this part of the problem is easy and I have it done. The next option the user will have is to delete a line in the address book, giving only the telephone number. So in other words, the user types in a telephone number, the program will search the address book text file for that phone number, and delete that phone number as well as the name and address associated with it.
How can I make it so that I search a text file for a phone number, then delete the whole line containing it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|