• 1 reply
  • Latest Post - ‏2014-04-26T13:53:23Z by jgstew
61 Posts

Pinned topic get product key from text file

‏2014-04-25T05:46:55Z |

HI All,

How can i get only the product key if i have this content of a text file in one line only.

Microsoft Office Professional Plus 2010            82503-018-0000106-48280                            VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB                      C:\Program Files (x86)\Microsoft Office\Office14\                                                     BRAI-PC                                            2/11/2014 2:56:54 PM




  • jgstew
    410 Posts

    Re: get product key from text file



    is this data separated by a single tab character between each? or the same number of spaces between each?


    If so, you could split the line on the tabs/spaces and then grab the 3rd string of the split.  

    This is not correct, but something like: ( item 2 of split "<tabChar>" of line of file )