ok first here is the code i used for the char by char methode:
Code:
for (int a = 0; a < Count; a++)
{
fread(&Text[a], 1, 1, pFile);
pointer->ASCII[a] = Text[a];
}
I get the following error from the debugger:
PHP Code:
Unhandled exception at 0x0114188f in NEF_Reader.exe: 0xC0000005:
Access violation while writing at position 0x00000000.
I also tried memcpy with following code:
Code:
memcpy(pointer->ASCII, &Text, sizeof(Text));
but I get the following error from the debugger:
PHP Code:
Unhandled exception at 0x66b7ed6a in NEF_Reader.exe: 0xC0000005:
Access violation while writing at position 0x00000000.
[php]