hi pradeep,
you have not mention on what your are trying this.
if it is matllab ...normal fopen will work
here is the matlab example
Copy 5 bytes from the file test1.dat, starting at the tenth byte, and append to the end of test2.dat:
% Create files test1.dat and test2.dat
% Each character uses 8 bits (1 byte)
fid1 = fopen('test1.dat', 'w+');
fwrite(fid1, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
fid2 = fopen('test2.dat', 'w+');
fwrite(fid2, 'Second File');
% Seek to the 10th btye ('J'), read 5
fseek(fid1, 9, 'bof');
A = fread(fid1, 5, 'uint8=>char');
fclose(fid1);
% Append to test2.dat
fseek(fid2, 0, 'eof');
fwrite(fid2, A);
fclose(fid2);