faqts : Computers : Programming : Languages : C

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

Read from a .txt file

Nov 16th, 2006 07:38
Steve Warren,


Im doing a project where i have to make a predictive text editor, and 
i have to get the program to read from a text file "dict_lib" and 
bring up the next word which matches...

i.e
“T” the-1, there-2, that-3, select or continue! “1”
“The c” cat-1 coat-2, select or continue! “o”
“The co” cook-1 clock-2, cot-3, select or continue! “s”
etc


It must use pointers to compare strings and use a number of functions 
and cant use strcmp

I am completely lost, and they have only given us a week to do this...

I have done a google search, but found it a little hard to word it, 
and refine it down to what i want....

Any help, in the form of links, sample code, a little head start would 
be great! Even a push in the right direction....