Closed JDsnyke closed 5 years ago
Hi @JDsnyke
You have copy.para "#{new_box.text}"
copy is File object which doesn't have a para method. You probably want copy.write "#{new_box.text}\n"
You may want a class variable @new_box = edit_box "placeholdertext"
because new_box may not be in scope.
@ccoupe
Works like a charm. Thanks!
Using Shoes 3.3.7
How do I go about grabbing the text typed in an Edit_box and saving it to a file on a button click?
This is what i used. It created the file but it just stays empty...
Edit : setting code to,
Still creates a file with empty content
I'm pretty new to all this. Any help is appreciated 😊