AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
readINI (String path, String topic, String option) yoix.windows
 
Reads the Windows INI file named by path, which currently must be a string that points at a local file, and returns a string that represents the last defined value of option under the section named topic or NULL if no definition is found or anything else goes wrong. All comparisons made using topic and option are case-insensitive.
 
 Example:   On many Windows system,
import yoix.stdio.*;
import yoix.windows.*;

String str;

str = readINI("C:\\Windows\\WIN.INI", "Colors", "scrollbar");
printf("scrollbar color=%s\n", str);
finds the string that represents the color of scrollbars in file WIN.INI and prints the results on standard output. Notice how the first argument in the readINI call points at the INI file, but only after we explicitly escape all backslash characters.
 
 Return:   String
 
 See Also:   getProperty, getProperties, loadINI, remINI, writeINI

 

Yoix is a registered trademark of AT&T Inc.