CODES / common / linecount
Count number of lines in a file
Contents
Syntax
- nb_l=CODES.common.linecount(filename) returns the number of line nb_l within the file filename.
Example
Count number of line in linecount.m:
count=CODES.common.linecount([fileparts(which('CODES.install')) '/+common/linecount.m']); disp(['There is ' num2str(count) ' lines in linecount.m'])
There is 20 lines in linecount.m
Copyright © 2015 Computational Optimal Design of Engineering Systems (CODES) Laboratory. University of Arizona.
Computational Optimal Design of Engineering Systems |