Read and write cookies to single file