Home > atmlab > arts > xml > xmlOpenOutputFile.m

xmlOpenOutputFile

PURPOSE ^

Internal function to open an output file for writing.

SYNOPSIS ^

function fid = xmlOpenOutputFile(filename)

DESCRIPTION ^

 Internal function to open an output file for writing.

    On error, the execution is stopped and an error message is printed.

 FORMAT   fid = xmlOpenOutputFile(filename)

 OUT   fid        File descriptor
 IN    filename   XML filename

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlOpenOutputFile.m

SOURCE CODE ^

0001 % Internal function to open an output file for writing.
0002 %
0003 %    On error, the execution is stopped and an error message is printed.
0004 %
0005 % FORMAT   fid = xmlOpenOutputFile(filename)
0006 %
0007 % OUT   fid        File descriptor
0008 % IN    filename   XML filename
0009  
0010 % 2002-12-13   Created by Oliver Lemke.
0011 
0012 function fid = xmlOpenOutputFile(filename)
0013 
0014 fid = fopen (filename,'w+t');
0015 
0016 if fid == -1
0017   error (sprintf ('Cannot open file %s', filename));
0018 end
0019

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005