If you would like to shorten the code, it might be helpful to take a look at ```BaseLib::StringTools::splitString()``` to parse lines.
(take a look at  ```GMSInterface::readBoreholesFromGMS()``` or ```TetGenInterface::parseNodesFileHeader()``` for a code example of how to use this)
(just a suggestion)