Recommended Posts

Should IniRead() strip quotes from an INI value? For example -

test.ini

[test]
string="hello world"

hello world

without the quotes. No biggie here. But if you're storing app paths in INI files like this

path="C:\path with space\to\app.exe" "%1"

then you get the wrong string after IniRead(). I've worked around it by wrapping any strings that might contain quotes in single quotes ( ' ' ). But after thinking about it more, I wonder if IniRead() should be touching quote characters at all?

I can submit a bug ticket if you (Valik) think it's appropriate.

Edited by wraithdu

Share on other sites

It's not a bug, no need for a ticket. Just continue to quote the quoted string and you'll be fine.

Ok, thanks.

Create an account

Register a new account