Getting a block of data from with a text file

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Getting a block of data from with a text file

    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 Guest

  2. Similar Questions and Discussions

    1. save data to text file?
      I have an application that gathers data frim the user. Using sendandload I can transfer the data to my server and store the data in a database. My...
    2. Centering text vertically in a text block
      I just bought Freehand MX 11 for Mac OS X and from using it back in the mid 1990s I could have sworn you could center text vertically in a text...
    3. Missing text (flush right text block) upon export to pdf
      I was aghast today to see and ad in the local paper (that I worked on and got client approval for) missing text at bottom of ad. I am using FH 10 in...
    4. reading data from a text file
      Hi, Simple question but I cant seem to find an answer in the help files: How do I read certain text from a text file, as in a string. What should...
    5. find physical blocks/disks, mapped from Oracle file# and block#, block corruption
      Hello "lopera" <prlopera@techie.com> schrieb im Newsbeitrag news:3E1C7C00.9090402@techie.com... I think that we need a bit more data here....
  3. #2

    Default Re: Getting a block of data from with a text file

    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
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------


    "Rob" <hdw.reporting@btopenworld.com> wrote in message
    news:bitnoc$r07$1@titan.btinternet.com...
    > 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] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139