Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shoes.app :width => 300 do
- flow do
- button "Load", :width => '30%' do
- readFolder = ask_open_folder
- combinedText = ""
- Dir.glob(folder + "/*.txt") do |file|
- combinedText = combinedText + File.read(file) + "\n"
- end
- @edit.text = combinedText
- end
- button "Clean up", :width => '30%' do
- end
- button "Save", :width => '30%' do
- file = ask_save_file
- File.open(file, "w+") do|f|
- f.write @edit.text
- end
- end
- end
- @edit = edit_box :width => '100%',
- :height => 500
- end
Add Comment
Please, Sign In to add comment