Replaced old %%file magic by %%writefile.