However, it could easily happen that the user would hit 'Escape', which causes the getfiled function to return nil. This makes the rest of the program meaningless, so the variable fname is used as a flag for the rest of section 20 as well as for sections 30 and 40. The balloon program was used as a sample program in lesson 6. In this lesson, however, we have added 16 lines so the balloon program will save its default balloon size in a file. The added lines are marked in the program below.
Many firms use the same size balloon on all their assemblies.
But with the added lines, the user enters the balloon size only once. It is saved in a file and retrieved every time balloon2 is run after that. The user can reset the balloon size at any time, and the new setting is saved in the file. The first if statement checks to make sure variable blndfl is not a string before trying to find the program file. Start point of arrow temp Temp.