Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying records on a text file
Message
De
16/01/2009 04:29:40
 
 
À
16/01/2009 04:18:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01374284
Message ID:
01374290
Vues:
22
>>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
>
>Copy to temp.txt next 1 ... 
>lcOldfile='Mytext.txt'
>Strtofile(filetostr(lcOldfile)+chr(13)+chr(10)+filetostr('temp.txt'),lcOldfile,1)
thank you tore, good solution.
what do you think would be faster ?
Copy to temp.txt next 1 ... 
lcOldfile='Mytext.txt'
Strtofile(filetostr(lcOldfile)+chr(13)+chr(10)+filetostr('temp.txt'),lcOldfile,1)
or
Copy to temp.txt next 1 ... 
lcstr = filetostr('temp.txt')
lnh = fopen('Mytext.txt')
=FSEEK(lnh, 0, 2) 
=fputs(lnh,lcstr)
=fclose(lnh)
thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform