mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-22 16:02:29 +02:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -28,29 +28,29 @@ int main(int argc, char** argv)
|
||||
<< " read base64-encoded <input_file>, decode it and write the result to <output_file>" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
std::ifstream istr(argv[1]);
|
||||
if (!istr)
|
||||
{
|
||||
std::cerr << "cannot open input file: " << argv[1] << std::endl;
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
std::ofstream ostr(argv[2], std::ios::binary);
|
||||
if (!ostr)
|
||||
{
|
||||
std::cerr << "cannot open output file: " << argv[2] << std::endl;
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
Base64Decoder decoder(istr);
|
||||
StreamCopier::copyStream(decoder, ostr);
|
||||
|
||||
|
||||
if (!ostr)
|
||||
{
|
||||
std::cerr << "error writing output file: " << argv[2] << std::endl;
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user