Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read text file and create a new file

Status
Not open for further replies.

ssinger1

MIS
Sep 12, 2003
87
US
I have a txt file that I would like copy and creat a new text file in a different format.

Current file:

NPA 1204
RLI 2
DENY 976

SDRR DENY CODES = 1
ITEI NONE


NPA 1205
RLI 2
DENY 976

SDRR DENY CODES = 1
ITEI NONE


NPA 1206
RLI 2
DENY 960

DENY 976

SDRR DENY CODES = 2
ITEI NONE


NPA 1207
RLI 1
DENY 940

DENY 976

SDRR DENY CODES = 2
ITEI NONE


I would like to get the new text format to read as: and of course have it saved in its new format.

NPA RLI
1204 2
1205 2
1206 2
1207 1


Any help would be great as I am losted with this.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top