outfile = "coil_diameter_results.txt" -- Read position of projectile's centerpoint handle = openfile("tempfile","r") position = read(handle,"*n") closefile(handle) -- Obtain force on coil, and we assume the -- force on projectile is simply opposite in sign groupselectblock(2) force = -blockintegral(12) handle=openfile("coil_diameter_results.txt","a") write(handle, position, "\t", force, "\n") closefile(handle) exitpost()