I'd suggest using Path rather than strings for the filename, and that way you can access the file extension and have it dynamically select from the different file readers, rather than having to input it as a keyword argument.
you forgot windows INI files 🤣 I don't know if they work on Linux/Mac's but there is no reason why they shouldn't (I think), in the long run they are just another text file :)
ini file format is very often used on Linux too. Have a look at crudini for a tool to programmatically handle ini files on any platform where python is available
I'd suggest using Path rather than strings for the filename, and that way you can access the file extension and have it dynamically select from the different file readers, rather than having to input it as a keyword argument.
Yeah that’s a great point!
😀
you forgot windows INI files 🤣 I don't know if they work on Linux/Mac's but there is no reason why they shouldn't (I think), in the long run they are just another text file :)
That’s a good point :) they probably do work everywhere :)
ini file format is very often used on Linux too. Have a look at crudini for a tool to programmatically handle ini files on any platform where python is available