You could also try this: notepad testfile.
This is sequential output. Comments are a good idea.
Functions Functions are just like SUBs, but they return a value. Try changing the number to 2 or 5 and see what happens. Wouldn't it be nice to keep the program running and still be able to get input from the keyboard?
Dividing programs into smaller pieces like this will help you make sense out of big programs. You could use arrays to make a phone book program, or a program that keeps track of the people in your class at school.
Writing to a file The solution to this problem is to let the user enter their information, then the program will store that information in a file on the hard disk.