To write this data to a file, place the 'writetofile' function after the 'quitlabel' label.
Instead of writing the data to the file, store them into the type first.
After everything is entered, dump all the Type data to the file at once.
Instead of writing the data to the file, store them into the type first.
After everything is entered, dump all the Type data to the file at once.