Changeset 8018 for trunk/anuga_core/source/anuga/utilities/system_tools.py
- Timestamp:
- Sep 16, 2010, 2:09:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/utilities/system_tools.py
r7486 r8018 21 21 22 22 23 def log_to_file(filename, s, verbose=False ):23 def log_to_file(filename, s, verbose=False, mode='a'): 24 24 """Log string to file name 25 25 """ 26 26 27 fid = open(filename, 'a')27 fid = open(filename, mode) 28 28 if verbose: print s 29 29 fid.write(s + '\n')
Note: See TracChangeset
for help on using the changeset viewer.