Save struct to file added