Re: edit a file cause unexpected execution

2008-07-25 Thread William
> 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

Re: edit a file cause unexpected execution

2008-07-25 Thread Rob Dixon
William wrote: > > Thanks for the reply. > >> Have you also modified the index.noun file to account for your changes? > >> index.noun contains a list of byte offsets into data.noun, and any changes to >> the latter mean the former is invalid. > > I have modified the index.noun too, > >> Alter

Re: edit a file cause unexpected execution

2008-07-25 Thread William
Sorry, I accidentally clicked the send mail. Thanks for the reply. > Have you also modified the index.noun file to account for your changes? > index.noun contains a list of byte offsets into data.noun, and any changes to > the latter mean the former is invalid. I have modified the index.noun to

Re: edit a file cause unexpected execution

2008-07-25 Thread William
Thanks for the reply. > Have you also modified the index.noun file to account for your changes? > index.noun contains a list of byte offsets into data.noun, and any changes to > the latter mean the former is invalid. I have modified the index.noun too, > Alternatively, I wonder what platform y

Re: edit a file cause unexpected execution

2008-07-25 Thread Rob Dixon
William wrote: > Hello, I am editing the WordNet http://wordnet.princeton.edu/ dictionary > files to add my own words into it. The database file of WordNet look like > normal text file and I am editing it with vim, but whenever I add a word it > causes the perl "seek" function to work incorrecl

edit a file cause unexpected execution

2008-07-25 Thread William
Hello, I am editing the WordNet http://wordnet.princeton.edu/ dictionary files to add my own words into it. The database file of WordNet look like normal text file and I am editing it with vim, but whenever I add a word it causes the perl "seek" function to work incorrecly. Here are the firs