I have to make a file (or a database I should say)in which I can read,write,append ---I can do these things easily.
The problem is that how I can rewrite at a particular location.
Also how I can sort the set of records (if I have some numerical values--weights attached to each record) when those weights keep on changing and the record needs to be sorted each time
weights are upgraded.