What is the difference between m3u and pls files, and which is beter for use.

The difference is in the structure of the entries for a referenced file. I'd use m3u, because it's more widely used and supported.

For further information you can have a look at this document, which describes all the different playlist formats.

Best regards,
~ Florian