Files
Laboratori-PY/Laboratorio10/enumerateLines.py
2024-03-22 17:01:42 +01:00

14 lines
176 B
Python

from os import close
fin = open("input.txt", "r")
fout = open("output.txt", "w")
c = 1
for l in fin:
fout.write("/*"+str(c)+"*/"+l)
c += 1
fin.close()
fout.close()