Add examples for writing file and passing a file through