Update readdist.cpp