I need to write a code that imports a list of files then goes through each file and rewrites only half the file. Cutting off the file at a key word. If I can make my code print the half I need I can make it write new files with the needed information. I am able to read the lines of each file and index the word I am using as the spliting spot but I am unsure where to go from here. I need to figure out how to print everything after the word "END"
All 14 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.