0

hi..
i need to read a file..
in tat file i ve to read all strings and compare it with the given string..
hw 2 read strings in file exculding whitespaces n compare it..?
help me...!!!!

4
Contributors
6
Replies
7
Views
8 Years
Discussion Span
Last Post by cooolguy
0

What don't you understand? I could write pages and pages explaining what's happening, but that won't help as much as a pointed answer to a pointed question. ;)

0

For reading: Link
For comparison: Link
And you have the information given by Ancient Dragon.Use "word" in his example as a string class object.

0

can u explain it please...........

The code snippet I posted opens a text file and reads it one word at a time. What I did not post was the requirement to compare the words read with some other string -- I left that up for you to do.

0

The code snippet I posted opens a text file and reads it one word at a time. What I did not post was the requirement to compare the words read with some other string -- I left that up for you to do.

thank you....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.