You can use the SQL dialog to import and export SQL statements as ASCII text files.
From the context menu for the SQL dialog, choose Import File or Export File.