Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please i need some file command
Message
From
12/02/2003 13:54:34
 
 
To
12/02/2003 13:34:13
Eric Gauthier
Transcontinental Interweb (Montreal)
Boucherville, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00752375
Message ID:
00752390
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform