auto reset during the loop()

gigiZ:
After the execution of a function that searches a number in the file my arduino reset.

Just taking a shot in the dark here, since there's no code to look at, but I'd guess you're reading a large amount of data into SRAM, running out of SRAM, and overwriting the stack. This is a very common cause of Arduino resets.