  We present a deterministic approach based on continuous measurement and
real-time quantum feedback control to prepare arbitrary photon number states of
a cavity mode. The procedure passively monitors the number state actually
achieved in each feedback stabilized measurement trajectory, thus providing a
nondestructively verifiable photon source. The feasibility of a possible cavity
QED implementation in the many-atom good-cavity coupling regime is analyzed.
