Best approah for mapping two files

Hi All,

In my project I have requirement to read the record from from .txt file and replace characters at different byte position with another file.

for example from file1.txt read a record1 and replace character at position 0, 1, 4 , 7, 9, 10 and so on with record1 from file2.txt.

can any one suggest any good approch to get this done.

[362 byte] By [sameer_13va] at [2007-11-27 10:46:03]
# 1

Read file into memory. Make changes. Write back out to file.

If file is too large, then read line or block into memory. Make changes. Write out to temp file. Once completed, delete original file and rename temp file.

floundera at 2007-7-28 20:16:45 > top of Java-index,Java Essentials,Java Programming...