This file code will read all the numbers found in a given file. It is
flexible with whitespace, separators, etc.
fname: filename of input file;
d: a matrix with all the numbers in the file
txt: all the comments in the file. (prefixed with % or #);
Aslak Grinsted 2014
Better dealing of empty lines and fixed a bug.
* Improved number regexp