Hi,
i need some help in implementing the memory mapped file on the same machine. My aim is to copy one file from the machine drive to another file [which is to be created before copying] on the drive of the same machine using memory mapped files.
The steps are as follows:-
1. I have created the memory mapped file object associated with some file on the disk say "D:\\Source.txt". The whole of the file is mapped here. The call for creating the mapping object was successful. This memory mapped object is a named object.
2. Then i tried using MapViewOfFile() for some file operations. These operations were also successful.
3. Now i want to copy the contents of the file "D:\\Source.txt" to the new file "D:\\Destination.txt" on the same drive using the memory mapped object [Use of existing memory mapped object]. The new file is to be created before copying the contents.
Note: I am trying to do this with the help of memory mapped files only.
Can anybody suggest
i need some help in implementing the memory mapped file on the same machine. My aim is to copy one file from the machine drive to another file [which is to be created before copying] on the drive of the same machine using memory mapped files.
The steps are as follows:-
1. I have created the memory mapped file object associated with some file on the disk say "D:\\Source.txt". The whole of the file is mapped here. The call for creating the mapping object was successful. This memory mapped object is a named object.
2. Then i tried using MapViewOfFile() for some file operations. These operations were also successful.
3. Now i want to copy the contents of the file "D:\\Source.txt" to the new file "D:\\Destination.txt" on the same drive using the memory mapped object [Use of existing memory mapped object]. The new file is to be created before copying the contents.
Note: I am trying to do this with the help of memory mapped files only.
Can anybody suggest
Code:
on this?
Thanks in advance
Sanjay