INI File readstring drops start and end quotes
Posted on 2006-06-27
Working on a simple app that uses an inifile which contains search values within its ini strings.
In the ini file these look like this
and words= 'Jim bob' 'sqirrel eater' 'big ol mammoth'
or words= 'red jumper' 'big mistake'
the commands I use to read these are:
My problem is ands looks like
Jim bob' 'sqirrel eater' 'big ol mammoth
when I want it to look like
'Jim bob' 'sqirrel eater' 'big ol mammoth'
The start and end quotes get chopped off. The same happens for double quotes. For single word phrases, quotes may be excluded, so just sticking a quote on each end would cause my app to possibly take the entire string as a single search phrase.
If anyone can suggest a way round this without changing from quotes to something else like brackets I'd be very thankful.
All the best,