I do it using filetostr('c:\mydir\myfile.ini')
Then I use memlines() and mline() to go through the file.

John

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Kevin Cully
Sent: Friday, March 16, 2007 3:01 PM
To: [email protected]
Subject: Re: INI Files

If it is that simple, take a look at FILETOSTR(), and STRTOFILE(), and
then MEMLINES() and MLINE() to get each line.

HTH.

---Kevin
CULLY Technologies, LLC

Sponsor of FoxForward 2007
foxforward.net


John Weller wrote:
> I'm having a real brain stall here!  I'm trying to write a simple routine
to
> read and write to an ini file.  I had a sample piece of code years ago but
> it is so long since I used it I've lost it.  I have an app which only uses
> two pieces of data, a source path and a target path.  I thought that it
> would be convenient if the user could edit them with notepad so decided to
> use an ini file.  I've found the definitions fro GetPrivateProfileString
and
> WritePrivateProfileString but I'm blowed if I can make them work!  Does
the
> ini file have to exist to write to it or will it create one; also the
> section?  Anyone got some sample code out there that I could copy.
> 
> TIA
> 
> John Weller
> 01380 723235
> 07976 393631
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to