dos file ends removed from file