+
+//--------------------------------------------------------------------
+void clitk::readDoubleFromFile(const std::string & filename, std::vector<double> & list)
+{
+ std::ifstream is;
+ clitk::openFileForReading(is, filename);
+ list.clear();
+ while (is) {
+ clitk::skipComment(is);
+ double d;
+ is >> d;
+ if (is) list.push_back(d);
+ }
+}
+//--------------------------------------------------------------------
+
+