Sign in to follow this  
Followers 0
wraithdu

IniRead() strips quote characters

3 posts in this topic

#1 ·  Posted (edited)

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

test.ini

[test]
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

Ok, thanks.

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  
Followers 0