file_set(): change open mode