deal the file script