Opening a new file need to clear the old.
Otherwise, if the new file is bigger, the old data will remain.