Open file and add method