What's the best way for a ini file ?
Posted: Sat Aug 30, 2008 11:09 pm
Hi guys,
I have all the settings for my application stored on constants. It is ok if you do not plan to change the settings like folder locations, database name etc.
But I think I need to give more flexibility in case someone else uses my application in another computer. So, as I can not read settings from a file and assign to it to an constant, is there a standard or best practice to load settings to your PB application like an ini file ? In fact it would be great to read data from a file and assign to a constant as I feel more secure that way. Any suggestion or experience in this issue will be welcome.
Thanks all.
I have all the settings for my application stored on constants. It is ok if you do not plan to change the settings like folder locations, database name etc.
But I think I need to give more flexibility in case someone else uses my application in another computer. So, as I can not read settings from a file and assign to it to an constant, is there a standard or best practice to load settings to your PB application like an ini file ? In fact it would be great to read data from a file and assign to a constant as I feel more secure that way. Any suggestion or experience in this issue will be welcome.
Thanks all.