extends Control var nbt = NBT.new() func _on_read_example_pressed(): $FileDialog.popup_centered() func _on_write_pressed(): $FileDialogsave.popup_centered() func _on_FileDialog_file_selected(path): $TextEdit.text = var2str(nbt.load_file(path,$c.pressed)) func _on_FileDialogsave_file_selected(path): nbt.save_file(path,str2var($TextEdit.text),$c.pressed)