analyse: stub out an output file

This commit is contained in:
Danny Robson 2020-12-06 09:00:22 +10:00
parent 09e4cf63bb
commit 139ed04b66

View File

@ -17,6 +17,7 @@
#include <algorithm>
#include <iostream>
#include <compare>
#include <fstream>
///////////////////////////////////////////////////////////////////////////////
@ -91,6 +92,8 @@ int main (int argc, char const **argv)
std::cerr << p << '\n';
std::ofstream output (argv[ARGS_OUTPUT], std::ios::out | std::ios::trunc);
output.exceptions (std::ios::badbit | std::ios::eofbit | std::ios::failbit);
cruft::mapped_file data (argv[ARGS_INPUT]);
std::cout << "size: " << data.size () << '\n';