Jump to content

IniRead() strips quote characters


wraithdu
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...