before using string to create FIle
 use string to create FIle