Sorry, I missed the Borland part. The first segment of code are the events that are either preset with those controls, or you selected something in a dialog box you initialize those events. The second part is what the resource editor uses to position them and other parametes. What you have on this dialog is
1 Label
1 Edit
2 Buttons
What you have to do is put code in those sections that suit your needs. For example in TFrom::Button1Click (TObject *Sender) is where you would read the contents of the edit control and write it to the file.
What you are dealing with here is what M$ refers to as MFC. I am not familiar with this (Borland) environment at all and you might be better off asking this question in
http://www.daniweb.com/techtalkforums/forum6.html
Geeks Lounge as your question is more related to using GUI and Borland.
Sorry I can't be of greater help