I would like to open several files and save the outputs. This is the operation that I would like to script iteratively for {i}=76 files.txt. The reference_file.txt is always the same for each of the 76 files I want to manipulate.
import numpy as np
a=np.loadtxt('filename{i}.txt')
b=np.loadtxt('reference_file.txt')
np.savetxt('output{i}.txt', np.subtract(a,b))
and then end the script.