analyse: stub out an output file
This commit is contained in:
parent
09e4cf63bb
commit
139ed04b66
@ -17,6 +17,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <compare>
|
#include <compare>
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
@ -91,6 +92,8 @@ int main (int argc, char const **argv)
|
|||||||
|
|
||||||
std::cerr << p << '\n';
|
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]);
|
cruft::mapped_file data (argv[ARGS_INPUT]);
|
||||||
std::cout << "size: " << data.size () << '\n';
|
std::cout << "size: " << data.size () << '\n';
|
||||||
|
Loading…
Reference in New Issue
Block a user