As of this POV-Ray issue I tried to figure out a reliable way to read a file line by line with C++ using ...
gehrcke.de