I am programming in VC6.
I would like to bind a buffer to a FILE pointer in order to be able to use fopen(), fread(), fwrite(), fseek() and fclose(). I know it may seem a little weird but I have a good algorithm that works with a FILE* and that I would not like to rewrite to make it work with a buffer.
I would like to know if somebody knows a C++ class or a set of C functions to do this.
I have looked a mmap() kind of functions but they do not work since they aren't Windows compatible.
Thanks for your help!