create a new project
add a Savedialog
add to filter property txt or what ever you like
add a button
on button click add
IF SaveDialog1.Execute THEN BEGIN
END ;
run the project
execute the save
add a name for the file
after the dialog is closed
close the form
a gdb crash occurs