Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Text Files
Message
 
 
À
11/04/2003 10:25:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00776573
Message ID:
00776575
Vues:
11
>How can I check to see if a file (text file) exists in a folder and if it does append to it, but if it doesn't create the file and then write to it.
>
>Probably very simple, but hey its Friday.
>
>E.g
>
>If Exists(Myfile.txt)
> Open myfile for Append
>Else
> Open myfile for Output
>Endif

Ger,

You don't have to check anything if you use STRTOFILE() function.
? STRTOFILE(lcStr, "Myfile.txt", .T.)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform