I am trying to use ptree to store a list of 3-6 byte words(alpha).
Short words are padded with spaces. Since I don't need a data file,
I am using the index as my data base. Using supplied sample code,
I am able to implement the following functionality:
CREATE - a new file and add new data.
ADD - a word to the file.
DELETE - a word from the file.
FIND - a word in the file.
Now, I am trying to implement a function to list all the words in
the file. I use **** for the first and **** for subsequent records
with **** to obtain the value of the key. The code is obviously
incorrect, since it prints the same word over and over.
Attached is my code. If you cannot accept it, let me know and I will
email it to support.
deleted by Administrator
------------------
Thanks,
Bob
Short words are padded with spaces. Since I don't need a data file,
I am using the index as my data base. Using supplied sample code,
I am able to implement the following functionality:
CREATE - a new file and add new data.
ADD - a word to the file.
DELETE - a word from the file.
FIND - a word in the file.
Now, I am trying to implement a function to list all the words in
the file. I use **** for the first and **** for subsequent records
with **** to obtain the value of the key. The code is obviously
incorrect, since it prints the same word over and over.
Attached is my code. If you cannot accept it, let me know and I will
email it to support.
deleted by Administrator
------------------
Thanks,
Bob
Comment