fix bug in DNA C++ skeleton code where last line was read twice