Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 Tip-o-the-day
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
VFP6 Tip-o-the-day
Divers
Thread ID:
00120888
Message ID:
00120888
Vues:
52
Folks,

VFP6 has two new functions FileToStr() adn StrToFile(). The first, FileToStr() reads a file passed and srgument into a memory variable.

lcString = FileToStr("MyFile.txt")

The second reads a string variable and writes it to a file;

lcString = RELICATE("Z",1000)
StrToFile(lcString,"MyFile.TXT", .F.)

the third argument is T or F as to whether the string should be added to exiting contents of the file.
Répondre
Fil
Voir

Click here to load this message in the networking platform