Oh.. I see. Thanks for the reply! I will explore that option.
Currently, I tried a different method. Where I saved a txt file in the preferences folder and everytime I opened the script, it will look for that txt file. If it's there, then populate the input field with the data. If not, then show default values. For now, this can fit my purposes. But your option is definitely a good alternative to writing external files. Thanks again!