def parseHandHistory(self, inputFile, outputFile): try: with open(inputFile) as file: history = file.read() analyzer = TxtAnalyzer(history) analyzer.analyze() handprinter = HandPrinter(analyzer, False, False) handprinter.printHandToFile(outputFile) print("Parsing successful") except AnalyzerException as e: print("Parsing failed") print("Error: ", e)
def parseHandHistory(self, inputFile, outputFile): try: with open(inputFile) as file: history = file.read() analyzer = TxtAnalyzer(history) analyzer.analyze() handprinter = HandPrinter(analyzer,False,False) handprinter.printHandToFile(outputFile) print("Parsing successful") except AnalyzerException as e: print("Parsing failed") print("Error: ",e)