Rewriting File Structure