Can property files have any file extension, like .txt? Or will they only work properly with .properties? Can I use a custom file extension, like .foo?
Yes, you can give property files any name.
The benefit of using a recognized file type is that humans and computers have an idea of the contents will be without looking at the actual content.
It can have any extension, extension doesn't matter. But then it becomes difficult to identify the file. Many OS recognize the type of file based on its extension so its better to stick to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With