摘要 |
<p>Various embodiments provide a file processing method and system. An exemplary file processing method can include receiving a request for opening a file applying for a memory area corresponding to the file requested for opening and setting a property of the memory area as non readable and non writable. After receiving a request for reading the file the memory area corresponding to the file requested for reading can be accessed. If the accessing fails for a failure reason that the property of the memory area is non readable and non writable file data requested for reading can be obtained from a disk by calling a memory access exception handler function registered in an operating system. The obtained file data can be stored in the memory area. The property of the memory area can be set as readable and writable and the file data can be read from the memory area.</p> |