what happens when the new version is shorter than the old one?

9.10.11 vs 10.0.0

This will write at the beginning but does the file get cleared?