0

Hi all

I am a noob to C++ and I want to make a program that copies a file from wherever previously specified to the location of where the program is running from, I looked on google but I cant find anything I can understand can somebody please point me in the right direction. I would be very grateful.


Many thanks

HLA91

2
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by John A
0

How would I read it into memory and so on I have never heard of that?

0

Open the input file with ifstream. Open the destination file with ofstream. Then use rdbuf(),

outputFile << inputFile.rdbuf();

Naturally, you'll still have to implement error-checking.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.