Combining a single-wavelength ellipsometer with a spectrophotometer, we propose a method to measure refractive indices of dielectric films at any wavelength. "With phase thickness of the thin film properly selected, the error of the measurement may be as low as <1×10-2, enough for the usual thin-film design and deposition.