Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please i need some file command
Message
 
 
À
12/02/2003 13:34:13
Eric Gauthier
Transcontinental Interweb (Montreal)
Boucherville, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00752375
Message ID:
00752390
Vues:
16
>Someone can tell me if there exist some function to clear one line in a file like clreol() in C.

>Because I have a .INI file and I want to change some value in this file, I try fputs or fwrite but sometime there appears some characters from the last value.


Use Fox Foundation Classes, there are an Ini-Class, with them you can Write and Read INI Sections & Values.
SET CLASSLIB TO (HOME(1)+"\FFC\REGISTRY.VCX") ADDITIVE
oIini = CREATEOBJECT("OldIniReg")
lcValor=SPACE(0)
*** Read Win.INI getting opctions of PDOptions Section ****
?oIni.GetInientry(@lcValor,"PDOptions","LastUser")
?lcValor
*** Create a new INI File called EPM.INI ***
lcRutaIni = CURDIR()+"EPM.INI"
?oIni.WriteEntry("Esparta", "PortalFox","Usuario",lcRutaIni)
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform