Quick & dirty method. Low level file handling. Write out header directly to a new file, then simply read in all lines from current file and append to new file. That would do it.
Regards, Kurt Wendt Senior Systems Analyst
Tel. +1-212-747-9100 www.GlobeTax.com
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Desmond Lloyd Sent: Monday, June 13, 2016 4:19 PM To: profoxtech@leafe.com Subject: VFP9: Outputing a text file with field names
Good afternoon,
Am outputing a text file type delimited with character "" character tab, works great. The table it is being generated from is a mix of character and numeric fields...
The only issue I have is that they wnat the fields names to make up the first record. My original throught was to build a separate table with the fields names entered in the record (one record) and then append from my file. This would put the field names up top and the rest of the data after that. Am concerned about adding the previously numeric fields as a character field.
Any suggestions? TIA, Desmond
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
[excessive quoting removed by server]