A variety of ways.

If small enough you could use FILETOSTR and two strings together (one being
header line) and then do STRTOFILE

Or you could use the COPY TO, then a combination of FCREATE, FOPEN, FGETS,
FPUTS, FSEEK and FCLOSE to rewrite the file with a header.
 

-----Original Message-----
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Sytze de
Boer
Sent: Friday, 16 August 2013 2:58 PM
To: profoxt...@leafe.com
Subject: Delimited TXT file

Hi Folk
I wonder if anyone is around to assist me with a Friday matter

I have a table with (say) 7 fields

The routine concludes with
COPY TO (txtfile) delimited
Sofar all is well

My client now needs a delimited line at the TOP of this txt file which bears
no resemblance to the structure of the table that creates the txt file

How do I do that ?

--
Kind regards
Sytze de Boer
Kiss Software


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/002301ce9a3e$eb5e51c0$c21af540$@ozemail.com.au
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to