auto reset during the loop()

Yes, please give us the whole program and also tell us what's in the file you're reading in.