Skip to content

Instantly share code, notes, and snippets.

@WideWord
Created August 22, 2012 15:13
Show Gist options
  • Select an option

  • Save WideWord/3426637 to your computer and use it in GitHub Desktop.

Select an option

Save WideWord/3426637 to your computer and use it in GitHub Desktop.
#include <fstream>
using namespace std;
int main (int argc, char** argv) {
if (argc < 3) {
return false;
}
ifstream in(argv[1], ios::binary);
ofstream out(argv[2], ios::binary);
while (in.good()) {
char s;
in >> s;
if (s != 0) out << s;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment