Jump to content

[Brackets]


Recommended Posts

`evening.

I`m finishing off my script where I have to write data into the .ini file. Everything works great except one last thing.

IniWrite ( "filename", "section", "key", "value" )

Is there a way to add brackets [] to the "key" or "value" so they actually look in between the brackes when they got written inside of a .ini file? Basicaly I need to IniRead them like "[key]" or "[value]" .

Thanks

Link to comment
Share on other sites

Perhaps like...

IniWrite("File.ini", "Section", "Key", "[Value]")

Would output:

[section]

[Key]=[Value]

I guess that would work, the problem I have is that the "Value" is a $var. I have tryed playing around, but couldnt come up with anything.

IniWrite("File.ini", "Section", "[Key]", "[$var]") is what I acctually need.

Link to comment
Share on other sites

I guess that would work, the problem I have is that the "Value" is a $var. I have tryed playing around, but couldnt come up with anything.

IniWrite("File.ini", "Section", "[Key]", "[$var]") is what I acctually need.

I hope this was a joke :)

IniWrite("File.ini", "Section", "[Key]", "[" & $var & "]")

Edited by Qousio
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...