Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
That read a text file and then extract it's words and store them in another text file each words in a separates line.
Posted
Comments
Sauro Viti 14-Oct-10 4:45am    
No effort

Take a look at istream[^], ostream and string. It should not take too long to work it out.
 
Share this answer
 
Well, the task is fairly simple:
  • Read the input file.
  • Match every word (seach for 'separators', i.e. spaces,tabs, etc).
  • Write every word plus a newline to the output file.


What is your doubt about?
 
Share this answer
 
You have already posted exactly the same question just with the tag C# instead than C++ (see Help Please in the read text file[^]): I think you have to ask yourself what do you want to do
 
Share this answer
 
Comments
Richard MacCutchan 14-Oct-10 5:47am    
OP doesn't want to do anything, expects us to do it for him/her.
Sauro Viti 14-Oct-10 6:49am    
Yes, this is his problem... pheraps he had choosen the wrong work...
noor qudah 14-Oct-10 7:25am    
I'm sorry, but I was asked the question did not specify the programming language

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900