add some api for FILE