README.md in excel-esv-0.0.4 vs README.md in excel-esv-0.0.5
- old
+ new
@@ -7,11 +7,11 @@
CSVs can be difficult to open correctly, e.g. in Excel on Mac.
## Usage
-### Generate
+### Generate data
``` ruby
require "esv"
data = ESV.generate do |esv|
@@ -20,10 +20,21 @@
end
File.write("/tmp/test.xls", data)
```
-### Parse
+### Generate file
+
+``` ruby
+require "esv"
+
+ESV.generate_file("/tmp/test.xls") do |esv|
+ esv << [ "Name", "Dogs", "Cats" ]
+ esv << [ "Victor", 1, 4 ]
+end
+```
+
+### Parse data
``` ruby
require "esv"
data = File.read("/tmp/test.xls")