Hi All,
I need to write a small application by which I can store Book Titles and its Author name into a text file.
Then it can have a search functionality to search for Book Title and Author name
The command line argument should be like below..
Enter 1 for Storing & Enter 2 for Retrieving : 1
Enter Author name: <Author1>
Enter Book name : <Book1>
Entry recorded...
Want to store more value (Y/N) ?: Y
Enter Author name: <Author2>
Enter Book name : <Book2>
Entry recorded...
Want to store more value (Y/N) ?: N
Exit
now my Book.txt file should contains value like
Author1 Book1
Author2 Book2
Enter 1 for Storing & Enter 2 for Retriving : 2
Search Author Name : <Author1>
Result: <Book1>
Please suggest me how to start with this. Pseudo code will also helpful.
Thanks
Sachin
I need to write a small application by which I can store Book Titles and its Author name into a text file.
Then it can have a search functionality to search for Book Title and Author name
The command line argument should be like below..
Enter 1 for Storing & Enter 2 for Retrieving : 1
Enter Author name: <Author1>
Enter Book name : <Book1>
Entry recorded...
Want to store more value (Y/N) ?: Y
Enter Author name: <Author2>
Enter Book name : <Book2>
Entry recorded...
Want to store more value (Y/N) ?: N
Exit
now my Book.txt file should contains value like
Author1 Book1
Author2 Book2
Enter 1 for Storing & Enter 2 for Retriving : 2
Search Author Name : <Author1>
Result: <Book1>
Please suggest me how to start with this. Pseudo code will also helpful.
Thanks
Sachin