Create/Work a database of words
Posted: Fri Apr 16, 2004 1:08 pm
Well im working since a few days on a medical database for student like me through our intranet chat program ...
I was looking to create a little routine in Purebasic to check for a word in a list ... the list is named definitions.dat , and each line has a structure like this :
"word : definition"
nothing more than a txt file with one definition per line
but as the file is growing , computers are freezing to retrieve if a word allready has a def ; in another way , im looking for a routine in an exe which could do "file.exe -search word" and give the most quickly the line in return to get the definition or commentaries.
Im really bad coder and i think i need some optimisation ; actually the file is 12 Mo big , and freezing computers like hell
have someone an idea of the best commands to put on the routine ? or a way to make this simple search function very quick ?
sorry , im so lost as i see this little definitions/help/commentaries txt growing each day :/
I was looking to create a little routine in Purebasic to check for a word in a list ... the list is named definitions.dat , and each line has a structure like this :
"word : definition"
nothing more than a txt file with one definition per line
but as the file is growing , computers are freezing to retrieve if a word allready has a def ; in another way , im looking for a routine in an exe which could do "file.exe -search word" and give the most quickly the line in return to get the definition or commentaries.
Im really bad coder and i think i need some optimisation ; actually the file is 12 Mo big , and freezing computers like hell
have someone an idea of the best commands to put on the routine ? or a way to make this simple search function very quick ?
sorry , im so lost as i see this little definitions/help/commentaries txt growing each day :/