readfile

PURPOSE ^

READFILE - ???

SYNOPSIS ^

function string=readfile(filename)

DESCRIPTION ^

READFILE - ???

   Usage:
      string=readfile(filename)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function string=readfile(filename)
0002 %READFILE - ???
0003 %
0004 %   Usage:
0005 %      string=readfile(filename)
0006 
0007 string='';
0008 fid=fopen(filename);
0009 while(1),
0010     tline=fgets(fid);
0011     if ~ischar(tline), break, end
0012     string=[string  tline];
0013 end
0014 fclose(fid);

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003