15 #include <mrpt/io/CFileGZInputStream.h>
16 #include <mrpt/system/filesystem.h>
23 ASSERT_FILE_EXISTS_(fil);
27 if (mrpt::system::extractFileExtension(fil) ==
"gz")
29 mrpt::io::CFileGZInputStream
f(fil);
33 const size_t N = 10000;
36 const auto n =
f.Read(&tmp[0], N);
41 const auto tmpFil = mrpt::system::getTempFileName();
44 fo.open(tmpFil.c_str());
45 ASSERT_(fo.is_open());
51 auto m = mrpt::maps::CSimplePointsMap::Create();
52 m->load3D_from_text_file(fileToRead);
56 "Could not parse a valid point cloud from ASCII file '%s'", fileToRead.c_str()));