Create td_export.r

export teradata query to .txt file