Thread: File handling
View Single Post
 
Old June 6th, 2006, 09:34 AM
vijayma vijayma is offline
Authorized User
 
Join Date: Dec 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default File handling

Hi All,

Someone help me how to create a txt file using another txt file by eliminating certain information from the source txt file.

Ex A.txt contains the following info
01aaaabbbbcc
04cccccddddeee
01aaaabbbccccc
04cccccddddeee

i need to create file b.txt eliminating the "eee" from the second line i.e 04,we can't say the 04 record will come always at 2nd line but we have the constant value "04" in front of the line.

O/P sample file
01aaaabbbbcc
04cccccdddd
01aaaabbbccccc
04cccccdddd