code below creates the txt file but with blank line at top of page. Is there some way to prevent that?
SET TEXTMERGE on
STORE FCREATE("c:\TEMP\testit.txt") TO _TEXT && Create low-level file
LOCAL lcxxx
STORE SPACE(900) TO lcxxx
lcxxx="INVOICE_DATE|INVOICE_NUMBER|CLIENT_ID|FIRM_ID|"+"INVOICE_TOTAL|BILLING_START_DATE|BILLING_END_DATE|INVOICE_DESCRIPTION|LINE_ITEM_NUMBER|"
TEXT NOSHOW PRETEXT 7
<<"MYTEST[]">>
<<lcxxx>>
ENDTEXT
=FCLOSE(_TEXT) && Close file
SET TEXTMERGE on
STORE FCREATE("c:\TEMP\testit.txt") TO _TEXT && Create low-level file
LOCAL lcxxx
STORE SPACE(900) TO lcxxx
lcxxx="INVOICE_DATE|INVOICE_NUMBER|CLIENT_ID|FIRM_ID|"+"INVOICE_TOTAL|BILLING_START_DATE|BILLING_END_DATE|INVOICE_DESCRIPTION|LINE_ITEM_NUMBER|"
TEXT NOSHOW PRETEXT 7
<<"MYTEST[]">>
<<lcxxx>>
ENDTEXT
=FCLOSE(_TEXT) && Close file