I am trying to grab a text file, read it, copy one line every nth lines, (it may not always be in the same place, but it will always start with 7, ) and delete a line that has the same issue that always starts with 4,. I then want to put the line that starts with 7, in its place. Questions. How does python deal with wild cards, if at all. And I know the set for reading and writing, just not copying. Is this even possible? Any input would be great.