File I/O, and some pointer or stack problem..
Posted on 2003-02-26
I have two questions here.
1.Because of some work, I need to collect all keywords that scattered in many files. Basically, I have to read all these files and extract those useful keywords. I know how to deal with it from one source file. Can anybody tell me how to deal with multiple files in this situation?
2. I have a file that contains all the keywords. I need a program to make the keywords unique and sorted alphabetically.
I think I have to read these keywords one by one from the file. Then each time compare the new one first with the smallest one, then those have been sorted.
My questions are: How shall I deal with the sorted results? How can I retrieve them when I need? How shall I save them? use pointer, or stack?
Thank you very much!