G
Gerrit Hulleman
Is there a way to assign memory to a FILE variable, allowing information to
be read from memory in stead of from drive?
I am trying to re-use an open-source package. This package uses a FILE*
variable to load information from a file. Te content of the file is present
in memory, and would like like the integrated package to use this stream in
stead of a file.
Situation:
Info = "<XML><Test/></XML>";
FILE *input =fopen('input.xml','r');
Writing the Info to a file and than point to that file would be possible,
but is there a way to point the input var to the info? I cannot change the
FILE type of the var, since it is deeply integrated in the package.
Gerrit Hulleman
be read from memory in stead of from drive?
I am trying to re-use an open-source package. This package uses a FILE*
variable to load information from a file. Te content of the file is present
in memory, and would like like the integrated package to use this stream in
stead of a file.
Situation:
Info = "<XML><Test/></XML>";
FILE *input =fopen('input.xml','r');
Writing the Info to a file and than point to that file would be possible,
but is there a way to point the input var to the info? I cannot change the
FILE type of the var, since it is deeply integrated in the package.
Gerrit Hulleman