A thin film of a second-kind superconductor in a magnetic field parallel to the surface of the film is considered in the London approximation. It has been shown that if bulk pinning is absent and the suppression of super-conductivity by the magnetic field is negligible, the splitting of a vortex chain in the film occurs as a structural phase transition either of the first or second order, depending on the ratio of the thickness of the film d to the penetration depth of the magnetic field λ. The ratio d/λ, and thereby the character of the transition in the vortex lattice, can be changed by varying the temperature. The corresponding critical thicknesses of films and field ranges in which this effect can be observed experimentally have been calculated.