Jump to content
Sign in to follow this  

IniRead() strips quote characters

Recommended Posts


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


string="hello world"

IniRead() on this will output

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 this post

Link to post
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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.