Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time, datetime
- class string(object):
- def removeChars(self, string, charArray):
- for i in range (0, len(charArray)):
- string = string.replace(charArray[i], "")
- return string
- class log(object):
- def fileOpen(self, file):
- self.file = open(file,"a")
- def addLine(self, line):
- self.file.write(str(line) + "\n")
- def addLineDT(self, line):
- time = datetime.datetime.now()
- print(time)
- self.addLine(str(time) + str(line))
- def addLinePrint(self, line):
- self.file.write(str(line) + "\n")
- print(line)
- def fileClose(self):
- self.file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement