> -----Original Message-----
> From: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 2:24 PM
> To: JDJList
> Subject: [jdjlist] Re: class to read Windows .ini files
>
>
> See attached.
>
>
> DR
hi david..
thank you for the .ini file code.
i really appreciate it.
fwiw: while working with your code i realized that you have to be "case sensitive"! when working with windows API calls - you do not have to worry about case.
i have coded around this for now - but am not sure if i will stick with this approch or not.
example:
// second parm to constructor means - ignore case
IniFile inf = new IniFile( new File( args[0] ), true );
Section s = inf.getSection("MGDSFAXGEN");
if (s.hasKey("LocalArea")){
System.out.println(s.getValue("LocalAREA"));
}
else {
System.out.println(s.getValue("localarea") + " no value found");
}
thx
mark
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up your posts before replying
____________________________________________________
