ObjCStreams objects

This is a file-like object, and it responds to these methods:


\begin{funcdesc}{close}{}
Closes the associated stream. A closed stream cannot be read or
written anymore.
\end{funcdesc}


\begin{funcdesc}{flush}{}
Flushes the associated stream's buffer.
\end{funcdesc}


\begin{funcdesc}{read}{\optional{size}}
Read at most \var{size} bytes from the s...
... empty string is returned when \EOF{} is
encountered immediately.
\end{funcdesc}


\begin{funcdesc}{readline}{\optional{num}}
Read one entire line from the stream....
...pped. An empty string is returned when
\EOF{} is hit immediately.
\end{funcdesc}


\begin{funcdesc}{readlines}{}
Read until \EOF{} using \code{readline()} and return a list containing
the lines thus read.
\end{funcdesc}


\begin{funcdesc}{seek}{offset \optional{, from}}
Set the stream's current positi...
...END} (seek relative to the file's end). There is no return value.
\end{funcdesc}


\begin{funcdesc}{tell}{}
Returns the current position in stream.
\end{funcdesc}


\begin{funcdesc}{write}{text}
Writes \var{text}, a string object, on the stream....
...file until the \code{flush()} or \code{close()} method is called.
\end{funcdesc}


\begin{funcdesc}{writelines}{list-of-strings}
Writes \var{list-of-strings} on th...
...code{readlines}; \code{writelines}
does not add line separators.)
\end{funcdesc}


\begin{funcdesc}{savetofile}{filename}
Writes the content of the stream in a file named \var{filename}.
\end{funcdesc}