Write a playlist file