Okay now let's see if my code actually worked in the writing part or if you have some kinda program that repaired the altered file. This is a read only version of the code from before.
#The Cute/Pawesome Self Awareness Identifier 9000 #this program will search through fenFacts.txt to check if Fen thinks it is pawesome and cute. #first step, open the file in read mode and set fenFactsFile = ('fenFacts.txt' , 'r') #now to blitzing through through this data. Python has built in functionality to read through lines in a file using a for loop like "for line in file:" where line is the current line of the file so let's just use that for currentLine in fenFactsFile: #loop code starts here. Our comparison strings have the "\n" at the end because we're not stripping these. let's check to see if it thinks it is NOT Cute or Pawesome first. if currentLine == "Is not pawesome.\n": print("I was wrong and thought I was not pawesome ~w~"); #let's skip over to the next iteration of the loop using continue to skip the rest of the code in the loop continue if currentLine == "Is not cute.\n": print("I wrong and thought I was not cute."); #let's skip over to the next iteration of the loop using continue to skip the rest of the code in the loop continue #Now the cute check if currentLine == "Is cute.\n": print("I already knew I was cute!"); #now for the pawesome check if currentLine == "Is Pawesome.": print("I already knew I was pawesome ^w^"); #end of reading, we got our checks done. Time to close the file
fenFactsFile.close()
------ I was wrong and thought I was not cute. I already knew I was pawesome ^w^









