| Subject: | Re: edit a file cause unexpected execution |
|---|---|
| From: | esia168@xxxxxxxxx (William) |
| Date: | Fri, 25 Jul 2008 12:56:34 -0700 (PDT) |
| Newsgroups: | perl.beginners |
> You clearly haven't come across file indexing before! Using seek() to locate a > record is incomparably faster than reading through it until you find the data > you need. > > Using the file offset as a record ID is a good idea because > - It is bound to be unique > - it is easy to verify that the data hasn't been corrupted > The separate index.noun file is there to make it quick to find all records in > data.noun that apply to a given word. > Editing the database is a non-trivial task. You've found the documentation > already, so take a look at that and write something that allows you to move > data > around while keeping the record IDs valid. Thank you that helps me understand a lot, I have stare at the documentation quite long but I still can't find the way of editing the data without affecting the byte offset. I would need to customize the module WordNet::QueryData according the the new things that I added too. Thank you, Send instant messages to your online friends http://uk.messenger.yahoo.com |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | getting process id under NT, Epanda |
|---|---|
| Next by Date: | while trying to learn pack, Richard Lee |
| Previous by Thread: | Re: edit a file cause unexpected execution, Rob Dixon |
| Next by Thread: | getting process id under NT, Epanda |
| Indexes: | [Date] [Thread] [Top] [All Lists] |