CGAL 5.5.5 - IO Streams
Stream_support/Point_WKT.cpp
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/IO/WKT.h>
#include <iostream>
#include <fstream>
#include <vector>
int main(int argc, char* argv[])
{
typedef CGAL::Point_2<Kernel> Point;
typedef std::vector<Point> MultiPoint;
std::ifstream is((argc>1)?argv[1]:"data/multipoint.wkt");
MultiPoint mp;
for(const Point& p : mp)
{
std::cout<<p<<std::endl;
}
is.close();
return 0;
}