by wembley » Mon Jun 01, 2009 11:56 am
David -
The answer to your question depends on what .INI file you want to read.
EmSystemConfiguration has methods for accessing the system .INI (the .INI that is read automatically when your image starts). If you are trying to get information from this .INI, then these methods are the ones to use since they access the in-memory contents of the .INI file.
AbtIni (buried in the AbtOdbcSamplesApp) can be used to access ANY file that is created using .INI syntax (stanza names in [ ] followed by keyword=value lines). AbtIni itself doesn't need any code from EtTools, but other code in the app does. So one thing you could do is create a TobIni class in one of your apps and copy all the methods from AbtIni to this new class. Or you could ask us to move AbtIni to somewhere where it can be more generally useful. AbtIni was created for a specific purpose -- to read the ODBC.INI file that is used by the ODBC samples, so it may not be feature-complete for your purposes.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.