Jump to content
Sign in to follow this  
Encryption

Writing to Ini Help...

Recommended Posts

Encryption

Ok, if i have an EMPY Autoit file and I want to write more than one string to the .ini how do I make it always pring the string to be written to the file at the end of the .ini file...as seen

IniWrite("blah.ini", "", "", "A")
Sleep(500)
IniWrite("blah.ini", "", "", "B")

I was doing that and it wasn't writing the string to the end of the .ini file...is there a certain parameter i should set, or is it just an error in my code?

Share this post


Link to post
Share on other sites
Valik

You're not writing valid INI data. You aren't providing a key or a section. What you appear to want is FileWriteLine.

Share this post


Link to post
Share on other sites
Encryption

Yes I just realized that after I read your answer. It hit me that .Ini were more configuration files than just logs. If I did file write like to a normal text file then my task would be accomplished. Thank you for helping me realize the flaw. :lmao: 2x Cookies for you.

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.