It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Help regarding file read & write using VB

Moderator: dafunkymunky

Help regarding file read & write using VB

Postby sajib on Wed Aug 25, 2010 8:36 am

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
sajib
 
Posts: 1
Joined: Wed Aug 25, 2010 8:12 am

Who is online

Users browsing this forum: No registered users and 1 guest