When we are using RAM DISK - the files are stored on the RAM.
from what I understand (and saw many examples) in order to read data from file (the file which locate on the RAM) - I need to use the read function.
Is there a chance to get char* (or any pointer) to the content of the file without using the read function ?
If the file locate on the RAM, it seem that it is like I have a buffer on the RAM (like an array which was dynamic allocated) and in the case of a buffer on the ram -> we can use pointers to the data without reading all the data.
void main ()
// for the example: suppose we have file which contains CDATA structures.
// in stead of reading the whole record
// can I get a pointer to the content of the file -> which already locate on the RAM (bacause
// it is file on the RAM DISK)
// can I do something like that:
CDATA* pData = m_ramdiskFile.beg(); ???
cout << pData->dValue4;
so although the file locate on the RAM (because we are using RAM DISK folder), we cant get pointers to specific data in the file without reading the content ?
(as opposed to working with buffers on the memory) ?