D
dan
hey peeps,
i am completely new at c++ and i need some help with an
assignment. it is basically about file i/o with fstreams. i
understand how to open a file with fstream, but how would you read,
write and display data that is contained in... for example a regular
text file? another question... how would you be able to count the
number of words in the text and then c it out (cout)? how would you
replace specific words in the text file? if you were to display the
text contained in the text file how would you format it so that you
would only have 10 words per line of text? anywayz if anyone can help
me out that would be great!
dan
i am completely new at c++ and i need some help with an
assignment. it is basically about file i/o with fstreams. i
understand how to open a file with fstream, but how would you read,
write and display data that is contained in... for example a regular
text file? another question... how would you be able to count the
number of words in the text and then c it out (cout)? how would you
replace specific words in the text file? if you were to display the
text contained in the text file how would you format it so that you
would only have 10 words per line of text? anywayz if anyone can help
me out that would be great!
dan