Allessio,
to you like to have all records on the end of Mytext.txt or just a single one?
if you need all on the same file then you need just to export all and append them at once.
if every record goes to a different file then you still can export all add once and process the result string line by line for example using ALINES()
Would be nice to have at least filled the VFP version on the message header, to see the limitations of your VFP.
If you like to have only some special records appended you might use COPY TO ... FOR or a SELECT SQL copy to followed by COPY TO to export all records you need at once
HTH
Agnes
>Hi there,
>I'm trying to append singular records in a text file.
>As I want to save it in a csv format, appending each record at the end of an existing text file,
>Is there a way faster than using "copy to temp.txt next 1 delimited by... "
>and then reading this file, get the string and appending it to the Mytext.txt ?
>Thank you
>Alessio
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]