Status tensorflow::Env::NewAppendableFile(const string &fname, std::unique_ptr< WritableFile > *result)
Creates an object that either appends to an existing file, or writes to a new file (if the file does not exist to begin with).
On success, stores a pointer to the new file in *result and returns OK. On failure stores NULL in *result and returns non-OK.
The returned file will only be accessed by one thread at a time.
The ownership of the returned WritableFile is passed to the caller