]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STARLIGHT/starlight/src/inputParser.cpp
updated STARTLIGHT to r191 (http://starlight.hepforge.org/svn/trunk)
[u/mrichter/AliRoot.git] / STARLIGHT / starlight / src / inputParser.cpp
index ed6160792f97030e0bfb2ec4ce8b396793179672..fbc33df9500cf00a4b99c5e48346c1cbd252ab6f 100644 (file)
@@ -56,7 +56,7 @@ int inputParser::parseFile(std::string filename)
     int lineSize = 256;
     char tmp[lineSize];
     int nParameters = 0;
-    while (!infile.getline(tmp, lineSize).eof())
+    while (infile.getline(tmp, lineSize))
     {
 
         std::string line(tmp);
@@ -69,6 +69,8 @@ int inputParser::parseFile(std::string filename)
 }
 int inputParser::parseString(std::string str)
 {
+  if (str == "")
+    return false;
 
     std::string word;
     std::string name;