No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi, im trying to read and write an array of integer to/from a file. i use this to write to a file: [code=c]fwrite(texel, sizeof(int), size, fp);[/code] and this to write it: [code=c] (*out) = new int[size]; fread((*out), sizeof(int), size, fp); [/code] but the data read from the same file is … |
|
hi, im trying to read a binary file with header. so i manage to read the header by calling this: [CODE=c]fread(&headers, sizeof(MtexHeader), 1, fp);[/CODE] the header contains the size of the real content. i call those content by calling this line: [CODE=c]fread(out, sizeAccordingToHeader, 1, fp);[/CODE] but it always returns me … |