Initial import of csv-1.1.5.

Bug: 155309706
Change-Id: Id08b46b0989d3b869c4a014d10ea98193b7c3b32
diff --git a/examples/cookbook-write-basic.rs b/examples/cookbook-write-basic.rs
new file mode 100644
index 0000000..199d94b
--- /dev/null
+++ b/examples/cookbook-write-basic.rs
@@ -0,0 +1,22 @@
+use std::error::Error;
+use std::io;
+use std::process;
+
+fn example() -> Result<(), Box<dyn Error>> {
+    let mut wtr = csv::Writer::from_writer(io::stdout());
+
+    // When writing records without Serde, the header record is written just
+    // like any other record.
+    wtr.write_record(&["city", "region", "country", "population"])?;
+    wtr.write_record(&["Southborough", "MA", "United States", "9686"])?;
+    wtr.write_record(&["Northbridge", "MA", "United States", "14061"])?;
+    wtr.flush()?;
+    Ok(())
+}
+
+fn main() {
+    if let Err(err) = example() {
+        println!("error running example: {}", err);
+        process::exit(1);
+    }
+}