in reply to Updating the files with data from another file
how to fix the values of file2 in the file1?
There may be some misunderstanding... You cannot "fix file1". You must make a new file which is the "fixed" version of file1. Then you can adjust the file names such that this new file replaces the existing file1.
Stuff like say some area number cannot be directly added into file1(i.e., area=1234). The file on disk is literally a very long string of bits. You can't add more bits between say bit #38 and bit #39 without overwriting what was in bits #39,40,...etc. Think of an old cassette tape with 5 songs. You can't add a new song #6 between song 2 and 3 without rewriting songs 3,4,5.
cdarke's post is the correct method for this procedure.
So, you have the general idea of what needs to be done. Write some code and report back with it and specific questions.
|
|---|