Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input_filename = "input.txt"
- line_no = 0
- for line in open(input_filename):
- output_filename = "output" + str(line_no) + ".txt"
- with open(output_filename, "w") as fp:
- fp.write(line)
- line_no += 1
Advertisement
Add Comment
Please, Sign In to add comment