Electromagnetic field produced in high-energy heavy-ion collisions contains much useful information, because the field can be directly related to the motion of the matter in the whole stage of the reaction. One can divide the total electromagnetic field into three parts, i.e., the contributions from the incident nuclei, non-participating nucleons and charged fluid, the latter consisting of strongly interacting hadrons or quarks. Parametrizing the space-time evolution of the charged fluid based on hydrodynamic model, we study the development of the electromagnetic field which accompanies the high-energy heavy-ion collisions. We found that the incident nuclei bring a rather strong electromagnetic field to the interaction region of hadrons or quarks over a few fm after the collision. On the other hand, the observed charged hadrons' spectra are mostly affected (Coulomb effect) by the field of the charged fluid. We compare the result of our model with experimental data and found that the model reproduces them well. The pion yield ratio pi^-/pi+ at a RHIC energy, Au+Au 100+100 GeV/nucleon, is also predicted.