I am a python noob. Suppose I have a FRUITS.txt file containing
apple 8456 ./unmatched/sfhogh/weyurg/wiagieuw
mango 5456 ./unmatched/swagr/arwe/rwh/EJA/AEH
carrot 7861468 ./unmatched/def/aghr/arhe/det/aahe
pineapple 5674 ./unmatched/awghhr/wh/wh5q/ja/JAE
I need to delete word unmatched from all the lines of a text file.I tried line.strip command but it erases everything from the file.