This probably isn't the first time this question has been asked, but how do you input an entire txt file to an array and then print it out, using ifstream?
This probably isn't the first time this question has been asked, but how do you input an entire txt file to an array and then print it out, using ifstream?
ifstream only reads files in
ofstream puts files out
First get the location of the file to be read in with ifstream
Store the file into a buffer or array
Create or open a different file (can be .txt or any other)
Read the buffer or array out to the new file usint ofstream
That is basicly how I would do it. Coding it could get quite tireing though.
C++ Is Powerful
I use C++
There fore I am Powerful