C++ file operation

Hello all,

i need some string or char file operations i couldt make it.
i have a bat file with a some writen in it.

for example : mytext.bat
There are more wild animals in the jungle.
Writen in it..

i want to read it and save the sentences in a something like that Char wrt[50] or string k;...
and i want to write it in a some another file.
How can i do that?

or

can i add a word with using dos command in it?or edit it with C++


Please Help me how can i do theis?
Last edited on
http://cplusplus.com/doc/tutorial/files/
I think you'll find that that covers file operations very well.
Topic archived. No new replies allowed.