![]() |
How to retrieve specied string from text file - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to retrieve specied string from text file (/Thread-How-to-retrieve-specied-string-from-text-file) |
How to retrieve specied string from text file - nsuresh316 - 06-08-2015 I have a txt file content is as follows Code: 10.76.34.61 10.76.177.138 NULL POST /a2asoa/v2008/001/Security.asmx <REQ><OP>IsUserIdAvailable</OP><SOAP><userID>shawnandersonxnet</userID><pwd>****</pwd><sourceid>1012</sourceid><searchUserID>cwclvickers1</searchUserID><languageID>1</languageID></SOAP></REQ> 16 4000 200 0 931 931 NULL 89998 1 2015-06-03 14:26:17.257 3000 137580 0 From this file i want to retrieve the value from the element sourceid for Eg. Code: <sourceid>1012</sourceid> From this i want 1012 alone RE: How to retrieve specied string from text file - nsuresh316 - 06-09-2015 Hi Team, I found the solution Sample.txt contains the above content Code: Dim fso |