Hi friends, again i need ur help..
I hve a text datafile which consists of one word per line like this...
program
byte
this
example
and i am using the following code to read the words from the datafile..
fstream f1;
f1.open("file.txt",ios::in|ios::out);
f1.getline(variable,10,'\n');
f1.close();
The datafile consists of more than 75000 words and it takes much time to read the whole file .Can anybody suggest a better code to speed up the reading of file.