Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file_path = 'Strip_descriptions.txt'
- with open(file_path, 'r', encoding="utf8") as file, open('Offset_descriptions.txt', 'w', encoding="utf8") as new_file:
- count = 1
- need_titles = 3025
- for line in file:
- if count > need_titles:
- break
- count += 1
- new_file.write(line)
- print("Nice")
Advertisement
Add Comment
Please, Sign In to add comment