14#ifndef OR_TOOLS_PORT_FILE_H_
15#define OR_TOOLS_PORT_FILE_H_
19#include "absl/status/status.h"
20#include "absl/strings/string_view.h"
25 absl::string_view content);
34 std::string* filename_out);
In SWIG mode, we don't want anything besides these top-level includes.
bool PortableTemporaryFile(const char *directory_prefix, std::string *filename_out)
Returns true if successful. Outputs temp file to filename.
::absl::Status PortableDeleteFile(absl::string_view file_name)
::absl::Status PortableFileGetContents(absl::string_view file_name, std::string *output)
::absl::Status PortableFileSetContents(absl::string_view file_name, absl::string_view content)