-update: add open file function.