Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from glob import glob
- def erase_lines_in_files(directory):
- for filename in glob(f"{directory}*.csv"):
- with open(filename, "rb") as f:
- lines = f.readlines()
- for line in lines[1:]:
- f.write(line)
Add Comment
Please, Sign In to add comment