Home > atmlab > arts > xml > xmlOpenBinaryOutputFile.m

xmlOpenBinaryOutputFile

PURPOSE ^

Internal function to open a binary output file for writing.

SYNOPSIS ^

function fidb = xmlOpenOutputFile(filename)

DESCRIPTION ^

 Internal function to open a binary output file for writing.

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

 FORMAT   fidb = xmlOpenBinaryOutputFile(filename)

 OUT   fidb        File descriptor
 IN    filename    XML filename

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlOpenBinaryOutputFile.m

SOURCE CODE ^

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

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