Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading plaintext?
Message
 
 
À
21/11/2008 17:57:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01363610
Message ID:
01363613
Vues:
15
>I was asked for help with a toy project - read in a plaintext file and return a random line from the file. I could do this easily with a table, but don't know enough about low level file functions to do that job easily. Can I get a kick in the right direction, please?

Hi Chris,

If the file has less than 65000 record (VFP array limit befor VFP9), you can use FILETOSTR() and ALINES(). Otherwise you'll have to use FOPEN(), FGET() and FCLOSE().
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform