tjbradford
Technical User
Hi All,
I have created a vb6 app that reads a file into a textbox, but I would like to only display bits of the file , i'm unsure how to go about this ,
i was thinking of first breaking it into new lines at every "," then grabbing the lines from this file as required.
this will still leave something like the following:
, length: 239 bytes:
Cisco IOS Software, C850 Software (C850-ADVSECURITYK9-M)
I then want to remove ", length: 239 bytes:" from the begining.
I have no idea how to go about this
can anyone help ?
below is a sample of the file i'm trying to read into vb6
***************************************************
20:49:17.453125 CDPv2, ttl: 180s, checksum: 692 (unverified), length 343
Device-ID (0x01), length: 18 bytes: 'rtr.yourdomain.com'
Version String (0x05), length: 239 bytes:
Cisco IOS Software, C850 Software (C850-ADVSECURITYK9-M), Version 12.4(6)T5, RELEASE SOFTWARE (fc1)
Technical Support: Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Sat 07-Oct-06 01:03 by kellythw
Platform (0x06), length: 10 bytes: 'Cisco 857W'
Address (0x02), length: 13 bytes: IPv4 (1) 10.10.10.1
Port-ID (0x03), length: 13 bytes: 'FastEthernet0'
Capability (0x04), length: 4 bytes: (0x0000002b): Router, Transparent Bridge, L2 Switch, IGMP snooping
Prefixes (0x07), length: 5 bytes: IPv4 Prefixes (1): 10.10.10.0/24
VTP Management Domain (0x09), length: 0 byte: ''
I have created a vb6 app that reads a file into a textbox, but I would like to only display bits of the file , i'm unsure how to go about this ,
i was thinking of first breaking it into new lines at every "," then grabbing the lines from this file as required.
this will still leave something like the following:
, length: 239 bytes:
Cisco IOS Software, C850 Software (C850-ADVSECURITYK9-M)
I then want to remove ", length: 239 bytes:" from the begining.
I have no idea how to go about this
can anyone help ?
below is a sample of the file i'm trying to read into vb6
***************************************************
20:49:17.453125 CDPv2, ttl: 180s, checksum: 692 (unverified), length 343
Device-ID (0x01), length: 18 bytes: 'rtr.yourdomain.com'
Version String (0x05), length: 239 bytes:
Cisco IOS Software, C850 Software (C850-ADVSECURITYK9-M), Version 12.4(6)T5, RELEASE SOFTWARE (fc1)
Technical Support: Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Sat 07-Oct-06 01:03 by kellythw
Platform (0x06), length: 10 bytes: 'Cisco 857W'
Address (0x02), length: 13 bytes: IPv4 (1) 10.10.10.1
Port-ID (0x03), length: 13 bytes: 'FastEthernet0'
Capability (0x04), length: 4 bytes: (0x0000002b): Router, Transparent Bridge, L2 Switch, IGMP snooping
Prefixes (0x07), length: 5 bytes: IPv4 Prefixes (1): 10.10.10.0/24
VTP Management Domain (0x09), length: 0 byte: ''