Yes but, if I don't use >>, how will it add the record each time the counter increases?
Also, I know and I have seen many times the "die -> Can't open the file" check, but I don't really understand what's the use of it. Is there a chance the the file will not be created with the "open" function?