Page 1 of 1 1
Topic Options
#118059 - 2004-04-15 09:36 PM editing INI file
Niro Offline
Fresh Scripter

Registered: 2003-07-15
Posts: 41
There's an INI file I need to be able to edit with kix...I need to remove a path and replace it with the users profile path...is there a way of changing lines inside an INI file with kix?

Thanks,
Mike

Top
#118060 - 2004-04-15 09:47 PM Re: editing INI file
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
An INI file is just a textfile so you can use Readline(), Writeline()
_________________________
Co


Top
#118061 - 2004-04-15 10:00 PM Re: editing INI file
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
YUCK!

Don't use ReadLine(), WriteLine() on an INI when you can use ReadProfileString(), WriteProfileString().
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#118062 - 2004-04-15 10:02 PM Re: editing INI file
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
You're right!
_________________________
Co


Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.067 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org