Code: Select all
M0001:jlee:James:Lee:23:Lakers Avenue 111/03 Country:123-345678
M0002:tbogard:Terry:Bogard:23:Lakers Avenue 211/03 Country:124-333678
etc.....In normal mysql queries you would just have to do something like "SELECT username FROM Users" to display all the usernames. However, now that I am using just a text file, how can I do searching, insertion and deletion?
Currently, I can only think of tokenizing those data and storing them into an array or linked-list. However, this approach is not that efficient.
Can anyone point me in a right direction please? Thanks!