954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hash Tables & Files

hi everyone
Im working on a program that includes hash tables and files.
What i'm doing is that I save the information (Name, Student ID, Address, Phone No.) of some students in a text file.
I use a hash table to work on the students' information.
Things like showing the information of a particular student or deleting their info or.....
My question is, I have used a usual implementaion of HashTable (with map) so far....but i feel that it wouldn't work
Do you think that I should use SerializableHash to be able to edit the contents of the text file?
I'm a bit lost here......How can i be able to access the contents of the file and have them as Hash Table?

scream2ice
Light Poster
33 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

You'll probably have to read the file into the table when the app starts, and re-write the edited data back at the end. You can do direct-access in-place updates of a file, but it's not easy or particularly safe - not recommended.
Where does the map come into it?

JamesCherrill
Posting Genius
Moderator
6,371 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You