Write the playlist file