Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert an information between 2 specific places in txt f
Message
De
01/02/2006 13:54:20
 
 
À
01/02/2006 13:40:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01092464
Message ID:
01092479
Vues:
20
If you know what information1 and information2 actually are (they're not just unknowns) then you have a few options. Read up on FOPEN, FREAD, FSEEK, FPUTS, and FCLOSE in the help & see how those could work for you to directly manipulate the file. OR, use FILETOSTR() to get the file into fox. Probably write it to a memo in a temporary cursor for size precautions, and use the Fox Pro string manipulation functions to locate where you want the insert to occur. Most likely, using the LEFT() and SUBSTR() functions to get the insert right.

>Hi SERGEY ,
>
>I have an Txt file , there is information in it .
>I would want to insert information at a specific place .
>
>example
> - information 1
> insert here an formation
> - information 2
>
>Thanks
Paul A. Busbey
Victoria Insurance
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform