> Does anyone know how to read in information from an .ini file so
> that it can
> be put into separate variables within Director?  Can this be done with the
> FileIO xtra?

It can be done with FileIO, but it's more work than necessary when you have
Buddy API at your disposal. Download it from:

http://www.mods.com.au

and then use baReadIni:

Usage: Result = baReadIni( Section, Keyname, Default, IniFile )

Arguments:      String, string, string, string.
            Section is the section name of the ini file.
            Keyname is the name of the key
            Default is the string that is returned if the file,
            section or key doesn't exist.
            IniFile is the name if the ini file to use.

Again, the Xtra is free for up to 2 functions per session.

HTH,
-Sean.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to