16 lines
247 B
Python
16 lines
247 B
Python
def openFile(path):
|
|
try:
|
|
myFile = open(path)
|
|
except Exception as e:
|
|
print e
|
|
pass
|
|
return myFile
|
|
|
|
def closeFile(fileObj):
|
|
try:
|
|
fileObj.close()
|
|
except Exception as e:
|
|
print e
|
|
pass
|
|
|