I am working on a project which consists of reading input from a file called input.txt which has an infinite number of lines. Each line has a roman numeral, a space, a plus or minus, another space, and then another roman numeral. I am supposed to add the two numbers together and write the answer to another file called output.txt. However, I can't think of a way to access the operator. Here is a sample input file:
XV + VII
XII + VIII
Can someone give me an idea of how I can access the plus sign for each line of my code?