Hey, so im creating a work example for school and right now i'm working on an "address book" sort of. I have three options the user can select add, view, and delete contacts. I want the "view" option to be able to search for first and last names inside of a text file and view them. This whole project is inside of a console and keyboard controlled, meaning that you physically type in either "add" "view" or "delete". So basically, how do i narrow down search results by first or last names then select them and view their phone number?
Khoanyneosr
0
Junior Poster in Training
Recommended Answers
Jump to PostHave you already written the delete function? View would be very similar.
How to do them will depend on how you designed the text file. There are as many ways to do that as there are programmers to program it.
Jump to PostUnless I completely misinterpret you, no, you are making sense. What doesn't make sense is creating a file for each person. If you have 1000 people in your contact list, you're going to have 1000 files. This will make your program slow and use a lot of system (disk) resources.
…
All 6 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Khoanyneosr
0
Junior Poster in Training
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Khoanyneosr
0
Junior Poster in Training
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Khoanyneosr
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.