Print variables to a file ($target)

How to print (export) variables to file in FTP mikrotik.

Btw.

$target print or export.

THX