Showing the corresponding data from other text file after being sorted and searched other text file
-
Hello. How will I show the other data that came from the other text file after I sort and search a different text file? For example, I searched for the name which is saved from another text file, how will i show the corresponding data which are saved from different text files for the name i searched? For example, for searching:
Search: Lopez
Last Name First Name Age Gender
Lopez John 18 Malefor sorting: before:
Sorting by Last Name:
Lopez John
Belasco Kelly
Santiago Kristine
Feroia Peterafter:
Belasco Kelly
Feroia Peter
Lopez John
Santiago KristineHow will i be able to do that?
-
Hello. How will I show the other data that came from the other text file after I sort and search a different text file? For example, I searched for the name which is saved from another text file, how will i show the corresponding data which are saved from different text files for the name i searched? For example, for searching:
Search: Lopez
Last Name First Name Age Gender
Lopez John 18 Malefor sorting: before:
Sorting by Last Name:
Lopez John
Belasco Kelly
Santiago Kristine
Feroia Peterafter:
Belasco Kelly
Feroia Peter
Lopez John
Santiago KristineHow will i be able to do that?
that is exactly why I said you could create a class MyType that holds all info, then sort the collection of MyType objects; doing so keeps the items intact. :)
Luc Pattyn
:badger: :jig: :badger:
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
:jig: :badger: :jig:
-
that is exactly why I said you could create a class MyType that holds all info, then sort the collection of MyType objects; doing so keeps the items intact. :)
Luc Pattyn
:badger: :jig: :badger:
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
:jig: :badger: :jig:
I have 5 text files and inside every file there are 30 predefined data. Is it possible for me to add those data in the class MyType as one? Besides that I have a function that lets the user add more data, which is easier to add in the class MyType as one.
-
I have 5 text files and inside every file there are 30 predefined data. Is it possible for me to add those data in the class MyType as one? Besides that I have a function that lets the user add more data, which is easier to add in the class MyType as one.
gamer1127 wrote:
Is it possible for me to ...
if you can explain it properly, then you can program it. :)
Luc Pattyn
:badger: :jig: :badger:
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
:jig: :badger: :jig: