15 #include <mrpt/io/CFileGZInputStream.h>
16 #include <mrpt/system/filesystem.h>
24 ASSERT_FILE_EXISTS_(fil);
28 if (mrpt::system::extractFileExtension(fil) ==
"gz")
30 mrpt::io::CFileGZInputStream
f(fil);
34 const size_t N = 10000;
37 const auto n =
f.Read(&tmp[0], N);
42 const auto tmpFil = mrpt::system::getTempFileName();
45 fo.open(tmpFil.c_str());
46 ASSERT_(fo.is_open());
52 auto m = mrpt::maps::CSimplePointsMap::Create();
53 m->load3D_from_text_file(fileToRead);
57 "Could not parse a valid point cloud from ASCII file '%s'",