[#BloombergLP-bdls-FilesystemUtil-FileOpenPolicy] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::FileOpenPolicy :relfileprefix: ../../../ :mrdocs: Enumeration used to determine whether 'open' should open an existing file, or create a new file. == Synopsis Declared in `<bdls_filesystemutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum FileOpenPolicy; ---- == Members [cols="1,4"] |=== | Name| Description | `e_OPEN` | Open a file if it exists, and fail otherwise. | `e_CREATE` | Create a new file, and fail if the file already | `e_CREATE_PRIVATE` | Create a new file with access restricted to the | `e_OPEN_OR_CREATE` | Open a file if it exists, and create a new file |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#