I have a .properties file where the environment details are written like this:-
DEVOPS_app=app1,app2
DEVOPS_bat=bat1,bat2
I want my code to read this file to search for a particular environment (For Ex - "DEVOPS" here) and save all the content after "=" in a list. Here for example list_app will contain app1
and app2
and list_bat
will contact bat1
and bat2
.
I am new to python so need someone's help here.
Thanks.