Loads a list of strings from file. Will append to given list
if asked.
Definition at line 6 of file FileUtils.py.
References print().
8 """Loads a list of strings from file. Will append to given list
11 filename = os.path.expanduser (filename)
12 if not os.path.exists (filename):
13 print(
"Error: file '%s' does not exist."%(filename))
14 raise RuntimeError(
"Bad filename")
15 source = open (filename,
'r')
16 for line
in source.readlines():
17 line = re.sub (
r'#.+$',
'', line)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)