Looking up a person's name, given personnel number

new topic     » topic index » view thread      » older message » newer message

I have a file where each line contains a personnel number, and a name. In this context, a "number" can contain upper-case letters as well. So, one line might be:

ABC123 Steve Swift

How should I store this data such that I can deduce the name, if all I know is that Persnum='ABC123' ?

I'm not asking for the mechanism whereby I read the file, presumably that is simple, it is the actual data storage in memory that interests me. I think that I'm asking for a "hash" mechanism, but I was off sick the day they taught about hashes in my schooldays "Computer Science" class.

Please excuse me if I've ridden roughshod over Euphoria terms here. I'm a rank beginner.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu