Im using NINI parser to read and write to an ini file. Everythings working fine, its reading and writing but lets say I read in these vaules:


It reads them fine but now lets say I change a 1 to 0. It writes back Test = 0. Theres spaces on both sides of the equal sign. Anybody have a niffty way so when Im writing to the ini file it will remove all spaces?

Your problem is in the NINI code.

I have attached my TiniFile class library with source for you to use in place of the NINI library. It has just about anything you would ever need to work with an ini file. If you find something it doesn't do, drop me a line and I can add it in a flash.