README.md in wow_dbc-1.0.1 vs README.md in wow_dbc-1.0.2
- old
+ new
@@ -76,11 +76,14 @@
puts "Newly created item: #{new_item}"
# Delete an item (be careful with this!)
# dbc.delete_record(new_item_index)
-# Write changes back to the file
+# Write changes back to the same file(update)
dbc.write
+
+# Write to a new file
+dbc.write_to('path/to/your/NewItem.dbc')
# Reading header information
header = dbc.header
puts "Total items: #{header[:record_count]}"
puts "Fields per item: #{header[:field_count]}"
\ No newline at end of file