save text

is there a way to save a short text (5/6 letters) to a file from kwgt? I know how to get it back ($wg). but not save it after modification without using an external application (text editor)).

my use: A main widget in which I make settings. I create a sequence of letters and numbers "W120" w for white text, 1 for the background color (wpcolor1), 20 for the alpha variable etc. I save it to recover it in secondary widgets.

Thank you for any idea