The DPF file is, in fact, a unit. For form-based window applications, its job is to create the main form (and other autocreated forms) and call Application.Run.
For console applications, you can put any code you want after the 'begin'.
Try File | New | Other | Console Application.
As for your...