Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2014-10-21, 07:52am
String manipulation
Subject: String manipulation  ·  Posted: 2004-05-24, 11:10pm
Rank: ? (1)
Member #: 15585
Hi All,
I am working with a file which is looks like below :

------------------------------------
[Message Number: 1]
------------------------------------
BROADCAST
PC Time&Date = 09:11:23 05/11/2003
NE Time&Date = 20:21:17 03/11/2003
*** ***
REPORT:

NAME = TS:10/CK:0/E:12
Probable = SS time
Event Type = test comm
Severity = Cleared
Associated String = hocon-1
------------------------------------
[Message Number: 2]
------------------------------------
BROADCAST
PC Time&Date = 09:12:23 05/11/2003
NE Time&Date = 20:22:17 03/11/2003
*** ***
REPORT:

NAME = TS:10/CK:0/E:12
Probable = SS time
Event Type = test comm
Severity = Cleared
Associated String = hocon-2
-----------------------------------
[Message Number: 3]
-----------------------------------
BROADCAST
PC Time&Date = 09:13:23 05/11/2003
NE Time&Date = 20:23:17 03/11/2003
*** ***
REPORT:

NAME = TS:12/CK:0/E:12
Probable = SS time
Event Type = test comm
Severity = Cleared
Associated String = SSs hocon-3

----------------------------------------------------------------


Can anyone help me by writing a VB code which will read the program
line by line by extracting NE Time&Date, NAME and Associated String (if the Associated String =hocon-2 and SSs hocon-3 )information and recorded it in two separate texts files:

File :1

Name NE Time&Date Associated String
---------------------------------------------------------
TS:10/CK:0/E:12 - 20:21:17 03/11/2003 - hocon-2


File :2
Name NE Time&Date Associated String
---------------------------------------------------------

TS:10/CK:0/E:12 - 20:23:17 03/11/2003 - SSs hocon-3





Thank u for your help

 
  Reply to this ·  Post link ·  Top
Subject: Re: String manipulation  ·  Posted: 2004-05-25, 02:34am
Rank: ? (4827)
Member #: 3416
what part are you stuck on?

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.