in C++...
 
int counter = 1;
while (!file.eof)
{
    file >> variable;
   counter++;
}
cout << counter;

Kapil <[EMAIL PROTECTED]> wrote:

N Khemker wrote:
> Hello Guys,
>                     Can anyone tell me HOW TO FIND OUT THE NUMBER OF
> WORDS IN SIMPLE TEXT FILE USING C COMMAND LINE PROGRAMME.
>                     We have to consider all aspects and check all
> coditions for words in text file.

> Regards,
> Neel.                 
>
>
Neel,

1. You could have pressed New Mail button instead of a reply, that would
have saved me from a thousand lines of irrelevant text.

2. You could have made concious efforts to explain :
what efforts have you made to solve your problem like any algo or
something you have thought of how to proceed.

If you dont want to solve problem yourself, and want us to do the same,
what fee are you ready to pay.

Kapil
--
PS:
1. Google: Feel free to Google before posting. http://www.google.com

2. Posting: I suggest the group members to avoid top posting, as this
pushes the original question to the bottom. While any body would prefer
to have the main question at the top, and subsequent replies added to
the bottom, so that it is easy to comprehend the flow of information. So
please stick to bottom posting.







To unsubscribe : [EMAIL PROTECTED]




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.ya hoo.com

To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=625212017


Yahoo! Groups Links

Reply via email to