18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
how to get particular value in KEY1=VALUE1?
Hi all,
I have one file with which I am reading through readfile.
File contents are as following:
KEY1=VALUE1
KEY2=VALUE2
I read this file in one variable with name $FILECONTENTS.
Now, while reading contents If I found value KEY1 then I need VALUE1 parameters ?
means, How can I seperate line with "=" and then look for KEY1 and VALUE1 ?
please guide me for the same.
I have one file with which I am reading through readfile.
File contents are as following:
KEY1=VALUE1
KEY2=VALUE2
I read this file in one variable with name $FILECONTENTS.
Now, while reading contents If I found value KEY1 then I need VALUE1 parameters ?
means, How can I seperate line with "=" and then look for KEY1 and VALUE1 ?
please guide me for the same.
This discussion has been closed.
Comments
You can use split. Here is an example.
Create a xxx.txt file and use the following code:
Let me know if this solves your issue.
Regards
Sumitra
Thanks a lot for your response, which solved my problem.