create file before the data coming
create file before the data coming