Getting a block of data from with a text file

Discussion in 'ASP General' started by Rob, Aug 31, 2003.

  1. Rob

    Rob Guest

    Hi All,

    Any ideas on how to read a txt file from asp and get it to grab one block of
    information?
    Sample txt file;

    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 192.168.0.1
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . :
    PPP adapter SpeedTouch UK:
    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 81.128.131.42
    Subnet Mask . . . . . . . . . . . : 255.255.255.255
    Default Gateway . . . . . . . . . : 81.128.131.42

    I wish to grab the PPP ip address of 81.128.131.42 (the 81 is the only
    static part of the ip) and then create a hyper link on the outputted page
    using this ip address.

    Thanks in advance,
    Rob
    Rob, Aug 31, 2003
    #1
    1. Advertising

  2. Rob

    Curt_C [MVP] Guest

    IPConfig huh? :}
    Use FSO to read it all in then use the Instr() Mid() Left() Right()
    functions to break to what you need.

    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    http://www.Darkfalz.com
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------


    "Rob" <> wrote in message
    news:bitnoc$r07$...
    > Hi All,
    >
    > Any ideas on how to read a txt file from asp and get it to grab one block

    of
    > information?
    > Sample txt file;
    >
    > Windows IP Configuration
    > Ethernet adapter Local Area Connection:
    > Connection-specific DNS Suffix . :
    > IP Address. . . . . . . . . . . . : 192.168.0.1
    > Subnet Mask . . . . . . . . . . . : 255.255.255.0
    > Default Gateway . . . . . . . . . :
    > PPP adapter SpeedTouch UK:
    > Connection-specific DNS Suffix . :
    > IP Address. . . . . . . . . . . . : 81.128.131.42
    > Subnet Mask . . . . . . . . . . . : 255.255.255.255
    > Default Gateway . . . . . . . . . : 81.128.131.42
    >
    > I wish to grab the PPP ip address of 81.128.131.42 (the 81 is the only
    > static part of the ip) and then create a hyper link on the outputted page
    > using this ip address.
    >
    > Thanks in advance,
    > Rob
    >
    >
    Curt_C [MVP], Aug 31, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Showjumper
    Replies:
    1
    Views:
    691
    Showjumper
    Mar 19, 2005
  2. morrell
    Replies:
    1
    Views:
    934
    roy axenov
    Oct 10, 2006
  3. FaXiA
    Replies:
    3
    Views:
    305
    Barry Schwarz
    Feb 4, 2005
  4. Keith G Hicks

    getting height of a block of text

    Keith G Hicks, Feb 12, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    355
    Keith G Hicks
    Feb 12, 2008
  5. Nit Khair
    Replies:
    1
    Views:
    95
    Brian Candler
    Sep 16, 2008
Loading...

Share This Page