setting file to the beginning value