function for create file in BaseFileHelper