find word, data in the file.(code only, collection)

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 8
Reputation: tgsoon2002 is an unknown quantity at this point 
Solved Threads: 1
tgsoon2002 tgsoon2002 is offline Offline
Newbie Poster

find word, data in the file.(code only, collection)

 
0
  #1
May 5th, 2009
I have some code to cout the line from file. and to use it to find word in the file.

[
ifstream bfile("test1.txt");

for(int i=0;i<=4;i++)
{bfile>> word[i];}

for(int i=0;i<=4;i++)
{line = line+ " " + word[i]; }
cout<< line<<endl;
]
after that use find word in string to find or edit in the the line, then take back to the file.

Any other idea to easy understand. I read some other thread, and their idea quite confuse i can't understand.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: find word, data in the file.(code only, collection)

 
0
  #2
May 5th, 2009
Read my answer to another your thread on the same topic:
http://www.daniweb.com/forums/thread190507.html
Are you sure that the more threads the better chance to get right answer?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC