git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Setting tag monitor-3.1-5
[monitor.git]
/
monitor
/
util
/
file.py
diff --git
a/monitor/util/file.py
b/monitor/util/file.py
index
167186a
..
f26c71d
100644
(file)
--- a/
monitor/util/file.py
+++ b/
monitor/util/file.py
@@
-17,3
+17,14
@@
def getListFromFile(file):
list += [line]
return list
+def loadFile(file):
+ f = open(file,'r')
+ buf = f.read()
+ f.close()
+ return buf
+
+def dumpFile(file, buf):
+ f = open(file, 'wb')
+ f.write(buf)
+ f.close()
+ return