Quote:
Originally Posted by somshridhar
The point ids can be anything only they should be in series as program contain series changes from x to y. Even 601 to 603 can be given.
|
In post #9, you showed IDs in input.txt 600003, 600004 and 600006, but in input1.txt 6000003, 6000004 and 6000006.
Quote:
I tried the program created by you but it gives output.txt same as input1.txt. It seems the find and replace function is not working and my problem lies there only.
|
What do your input.txt and input1.txt look like?
I tested the program I showed using
input.txt
Code:
Enter_the_number_of_names
2
Enter_the_name
Enter_the_range_of_points
Shri
600001
600003
Proactive
600004
600006
input1.txt
Code:
$POINT ID = 600001
I went to college
$POINT ID = 600002
I don't go to college.
It is tedious program
$POINT ID = 600003
Shridhar Ram Rahim
$POINT ID = 600004
Very Easy Program
$POINT ID = 600005
Life is nice
$POINT ID = 600006
and the result was output.txt
Code:
$POINT ID = 600001:Shri
I went to college
$POINT ID = 600002:Shri
I don't go to college.
It is tedious program
$POINT ID = 600003:Shri
Shridhar Ram Rahim
$POINT ID = 600004:Proactive
Very Easy Program
$POINT ID = 600005:Proactive
Life is nice
$POINT ID = 600006:Proactive