i searched for the answer couldn't get it.
i have the following code,
filePointer = open(r'c:\temp\logFile.txt', 'w')
filePointer.write(str( datetime.datetime.now()) + 'entered into table \n' )
but before i enter the above line into file, i want to check if it is already present in it. i can read the file and string compare and all, but I'm looking for a better way, help me out if there is any.