i have some code, and its for an ai program
in the program, the user types in a phrase. the prog loads a file with the list of phrases into a map, and displays the proper output.
for example, if the user types in hello, the program will respond by saying welcome
if the user types in something unknown, the program will ask for the proper response for the next time. it then loads it into the map and file
this is where my problem is
for some reason, it does not write it to the file or insert it in the map
im attaching the entire file so u can see if there is anything wrong with all the parts, or if there is some place i can improve something
i believe it is very basic, but i am not sure
please reply ASAP, because this is for school. if u cannot do it, please ask someone else to help, because this is very important
thank you for the help