#Opens files 
issues = open("Issues.txt", "r")
new_issues = open("New Issues.txt" , "w")
solutions = open("Solutions.txt" , "r")
Q1 = input("What is your issue?").lower()

#Changing sentence format to list
y = Q1.rsplit()
print (y)

#Variables 
search = 1
flag = 0
cases = 0
x = len(y)
readfile = issues.read()
for loop in range(x):
    if y[search] in issues:
        print("We have identified the problem")
    else:
        search += 1
        print(search)
        
    
   
#Writes the users answer to a new file if not identified in the system
if flag == 0:
    humandata = input("We could not find an automated solution for you, please type as much infomation about the issue and we will let a technician sort it out")
    cases + 1
    new_issues.write(str(cases))
    new_issues.write(humandata)
       





issues.close()
new_issues.close()
solutions.close()


