\section{FWRITE File Write Function}

\subsection{Usage}

Writes an array to a given file handle as a block of binary (raw) data.
The general use of the function is
\begin{verbatim}
  n = fwrite(handle,A)
\end{verbatim}
The \verb|handle| argument must be a valid value returned by the fopen 
function, and accessable for writing. The array \verb|A| is written to
the file a column at a time.  The form of the output data depends
on (and is inferred from) the precision of the array \verb|A|.  If the 
write fails (because we ran out of disk space, etc.) then an error
is returned.  The output \verb|n| indicates the number of elements
successfully written.
\subsection{Example}

Heres an example of writing an array of \verb|512 x 512| Gaussian-distributed \verb|float| random variables, and then writing them to a file called \verb|test.dat|.
\begin{verbatim}
--> A = float(randn(512));
--> fp = fopen('test.dat','wb');
--> fwrite(fp,A);
--> fclose(fp);

\end{verbatim}
