\doxysection{File Open Constants}
\hypertarget{group__file__open__constants}{}\label{group__file__open__constants}\index{File Open Constants@{File Open Constants}}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{group__file__open__constants_ga8e48617453f7fd321bcceee8816bf23d}\label{group__file__open__constants_ga8e48617453f7fd321bcceee8816bf23d} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+ACCMODE} = O\+\_\+\+ACCMODE
\begin{DoxyCompactList}\small\item\em Mask for access modes (O\+\_\+\+RDONLY\texorpdfstring{$\vert$}{|}\+O\+\_\+\+WRONLY\texorpdfstring{$\vert$}{|}\+O\+\_\+\+RDWR) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_gab47c6691139c37e08761a808d16ede1d}\label{group__file__open__constants_gab47c6691139c37e08761a808d16ede1d} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+APPEND} = O\+\_\+\+APPEND
\begin{DoxyCompactList}\small\item\em Open the file in append mode (append on each write) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga9af988b09d302ec0ae8605d5610e1e9a}\label{group__file__open__constants_ga9af988b09d302ec0ae8605d5610e1e9a} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+CREAT} = O\+\_\+\+CREAT
\begin{DoxyCompactList}\small\item\em Create the file if it doesn\textquotesingle{}t exist. \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga682b263ef12018bfd33ca8ba8bc8fd16}\label{group__file__open__constants_ga682b263ef12018bfd33ca8ba8bc8fd16} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+DIRECT} = O\+\_\+\+DIRECT
\begin{DoxyCompactList}\small\item\em direct disk access hint (0 on platforms where this is not available) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga5be496ec4bdff357baf0e742139c74b1}\label{group__file__open__constants_ga5be496ec4bdff357baf0e742139c74b1} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+DIRECTORY} = O\+\_\+\+DIRECTORY
\begin{DoxyCompactList}\small\item\em must be a directory (0 on platforms where this is not available) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga4ba47557022312d11d81f171fbb2e9ba}\label{group__file__open__constants_ga4ba47557022312d11d81f171fbb2e9ba} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+EXCL} = O\+\_\+\+EXCL
\begin{DoxyCompactList}\small\item\em Raise an error if used with O\+\_\+\+CREAT and the file exists. \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_gaef24f5eb3bd3bd4dd9d4658577376715}\label{group__file__open__constants_gaef24f5eb3bd3bd4dd9d4658577376715} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+NDELAY} = O\+\_\+\+NDELAY
\begin{DoxyCompactList}\small\item\em synonym for O\+\_\+\+NONBLOCK (untested with \doxylink{namespace_qore}{Qore}; 0 on platforms where this is not available) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga107ba322507fc52fe0c4a6537ded406a}\label{group__file__open__constants_ga107ba322507fc52fe0c4a6537ded406a} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+NOCTTY} = O\+\_\+\+NOCTTY
\begin{DoxyCompactList}\small\item\em don\textquotesingle{}t allocate controlling tty (0 on platforms where this is not available) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga3452d00ede9696d75d1062d95da9449a}\label{group__file__open__constants_ga3452d00ede9696d75d1062d95da9449a} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+NOFOLLOW} = O\+\_\+\+NOFOLLOW
\begin{DoxyCompactList}\small\item\em don\textquotesingle{}t follow links (0 on platforms where this is not available) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_gad5c43d9d32ea2b08ebbdfe70aa84710a}\label{group__file__open__constants_gad5c43d9d32ea2b08ebbdfe70aa84710a} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+NONBLOCK} = O\+\_\+\+NONBLOCK
\begin{DoxyCompactList}\small\item\em non-\/blocking I/O (untested with \doxylink{namespace_qore}{Qore}; 0 on platforms where this is not available) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga1ab351549a0b39d1492dc0a48d199f64}\label{group__file__open__constants_ga1ab351549a0b39d1492dc0a48d199f64} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+RDONLY} = O\+\_\+\+RDONLY
\begin{DoxyCompactList}\small\item\em Open the file read-\/only. \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga0d2a9837762a26e27fb666fa44358c37}\label{group__file__open__constants_ga0d2a9837762a26e27fb666fa44358c37} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+RDWR} = O\+\_\+\+RDWR
\begin{DoxyCompactList}\small\item\em Open for reading and writing. \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_gacb2f3e1944dae38a5c4363ba21bbca11}\label{group__file__open__constants_gacb2f3e1944dae38a5c4363ba21bbca11} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+SYNC} = O\+\_\+\+SYNC
\begin{DoxyCompactList}\small\item\em synchronized file update option (0 on platforms where this is not available) \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_gaeee59f4f7458e6d022dc84da0b9817af}\label{group__file__open__constants_gaeee59f4f7458e6d022dc84da0b9817af} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+TRUNC} = O\+\_\+\+TRUNC
\begin{DoxyCompactList}\small\item\em Truncate the size to zero. \end{DoxyCompactList}\item 
\Hypertarget{group__file__open__constants_ga24d94df00b8914ad6459e39cddfe15bf}\label{group__file__open__constants_ga24d94df00b8914ad6459e39cddfe15bf} 
\mbox{\hyperlink{group__type__conversion__functions_ga9a401e5112c58f63c05e7ee1e15968ef}{const}} {\bfseries Qore\+::\+O\+\_\+\+WRONLY} = O\+\_\+\+WRONLY
\begin{DoxyCompactList}\small\item\em Open the file write-\/only. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
These are the possible values that can be or\textquotesingle{}ed together when calling \doxylink{class_qore_1_1_file_a0f0e402ebce26412fa854b3647a13c15}{File\+::open()} or \doxylink{class_qore_1_1_file_acb397de36027a83129823742ac97c157}{File\+::open2()} 