Click to See Complete Forum and Search --> : Quotes are being removed from string


armkbdotcom
August 15th, 2004, 11:29 AM
I have some .ini file with the following variable:

var="asd"

When I'm trying to read that variable with GetPrivateProfileString(...) the quotes are being removed. But if I have something like this:

var=asd "zz" ccc
or
var="asd

then the quotes are being read correct.


Do I have to store strings with quotes at begining AND the end special way?

Mick
August 15th, 2004, 07:49 PM
Try doubling the quotes up.

var=""asd""