okay so your not using richy... then heres the code for a regular text box...

'to load the text...
commondialog1.filter = "CFG Files (*.cfg) | *.cfg"
commondialog1.dialogtitle = "open a cfg file.."
commondialog1.showopen

open commondialog1.filename for input as #1
text1.text = Input(LOF(1),1)
close #1

'to save the text
commondialog1.filter = "CFG Files (*.cfg) | *.cfg"
commondialog1.dialogtitle = "save a cfg file.."
commondialog1.showsave

open commondialog1.filename for output as #1
print #1, text1.text
close #1

there you go!
my first post