Export to txt

Hi,

Is there a way to export to “txt” like this:
(asterisk is only for figure out, replace asterisk by spaces)

1FINANCIACION BASICA000000009714222000000005035526
10
CAPITAL000000000000000000000003365668
100CAPITAL SOCIAL
000000000000000000000003365668
1000004
OTROS
****************000000000000000000000001646773
11******RESERVAS Y OTROS INSTRUMENTOS***000000000000000000000001669858

I’m trying this code: CONTD001.CUENTA+REP$(" ",12-LEN(CONTD001.CUENTA))

but the spaces are missing and this is that I get:

1FINANCIACION BASICA000000009714222000000005035526
10CAPITAL000000000000000000000003365668
100CAPITAL SOCIAL000000000000000000000003365668
1000004OTROS000000000000000000000001646773
11RESERVAS Y OTROS INSTRUMENTOSO000000000000000000000001669858

LL13 and Visual DataFlex 16.1

Best regards,
Antonio Jiménez