Hello,
Pls help me out of my problem while doing the foloowing stuff.
I have a text file which contains the texts in following format...
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
UMTS
name def
street sno road
ph no 9744677867
code a32
location india
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
UMTS
name ghk
street bill road
ph no 9832373297
code a77
location germany
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
UMTS
name abc
street sno road
ph no 9904435677
code a34
location india
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
The name of the text file is record.txt wheree these datas are there.
I want that VB code should search the ph no in entire text , find the every occurences throughout the text & select the portion (starting from UMTS to location) for that particular number & produce the out put to another text file called recordout.txt.
i.e the output file should contain in following format
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
UMTS
name abc
street sno road
ph no 9976543234
code a34
location india
Please note that for each paragraph UMTS is common starting point. I am unable write the codes. Please help me out of this.
Thanking you............
Sajib


