View previous topic :: View next topic
|
Author |
Message |
g.muralidhar
New User
Joined: 16 Nov 2005 Posts: 2
|
|
|
|
Hi,
I have the record-layou like this
01 Author
02 book
05 page pic 9(2)
05 para pic 9(1)
02 index x(3)
here "02 book" is the primary key.I have open the file in I-O mode and read the file dynamically using the primary key and rewrite the primary key .Ofcourse the primary key will be left unique.
Is this possible..Please help me...... |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
As I recall, you read the rec, make sure you can get at the data, delete it, move the new key in and write it. |
|
Back to top |
|
|
g.muralidhar
New User
Joined: 16 Nov 2005 Posts: 2
|
|
|
|
Hi ,
Thanks for your reply.I will try the way you said and let you know furthur. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
One other thing. I read something on another site that reminded me: it's safer to write the new rec BEFORE you delete the old one. |
|
Back to top |
|
|
|