creat file by creat function