read file on button push