Rwrite cdromif.cpp