write and read structure root folder