read value from INI file

hi all,
I have a problem with my script. I can't solve a bug about reading value from an ini file. I am not a scriptwriter, just trying to write a little script but I need to save my script setting to an INI file. In my case, I have to save a folder path for batch process. Saving works fine I would say, but loading that value crashes the script.
Script has been attached.

Thank you buddies for any help!

AttachmentSize
library_helper_bug.ms1.52 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

why stringStream?

You did unnecessary convertion from String to stringStream. The Edittext control expect String value.

text_infold.text = getIniSetting libraryhelperbugIniFile "Presets" "max_dir"

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.