Hey,
I'm trying to write a program that reads off of a txt file.
The text file is just a list of words. I want the program to put the definitions in another file.
I could do this in c++, but I need a premade program that i can input a word and it returns the defintion.
Like, the msdos command i would use would be filename.exe theWord
And then it prints out the definition on screen, which i can store in a file.
But, I have been unable to find a program like that.
If anyone knows of one, please tell me!
Also,
I know its possible to do the same thing in php. I know quite a bit in php, but the only thing I dont know is how to store what i site returns.
Like, lets say i tell it to go to http://www.m-w.com/cgi-bin/dictiona...nary&va=TheWord
How can I harness whatever the definiton is?
I could do it if I knew how I could retrieve the source code of a site...., and i just tell it to search for whatever is after the header part and store that... but i dono
any ideas, suggestions, etc would help!
thx