I\'m looking for a cross platform (Windows + Linux) solution to reading the contents of an entire file into a char *.
char *
This is what I\'ve got now:
fread reads all the files as-is:
fread
if (fread(contents, 1, fileSize, stream) != fileSize) { /* error occurred */ }