Results 1 to 2 of 2

Thread: Extracting text with qtp

  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    1

    Extracting text with qtp

    hi,

    I need qtp to clean up a text file for me,I'm looking for certain text only, rows with specific text in them, for example; i need to extract all records containing the words: ..."SYSOUT RECORDS" plus the following 5 rows... can anybody please give me a 'starting point' on how to do this with QTP?

    Thank you


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: Extracting text with qtp

    It can be done without QTP also....

    You need to create the Object of Text file in VBScript.

    Read the File and check for InStr Function for the specific text.
    Explore: CreateObject for R/W text file.

    Regards,
    Nawab


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact