FirstLineOfCode:

Path: Common/FileUtils

% Return the first line of code for a m-file. 
 This is the first line that
 has characters but does not begin with a comment. If no lines are found,
 empty '' is returned.
--------------------------------------------------------------------------
   Form:
   line = FirstLineOfCode( filename );
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   fileName     (1,:)     File name

   -------
   Outputs
   -------
   line         (1,:)     First line of code

--------------------------------------------------------------------------

Back to the Common Module page