Write song ids into file