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