Created
April 8, 2016 02:00
-
-
Save meritozh/da505adba5b290dcc807660ad6f02816 to your computer and use it in GitHub Desktop.
file stream to file stream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
int main(int argc, char const *argv[]) | |
{ | |
std::ifstream input(argv[1], std::ios::binary); | |
std::ofstream output(argv[2], std::ios::binary); | |
output << input.rdbuf(); | |
input.close(); | |
output.close(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment