Using fopen() or freopen()

This section describes considerations for using fopen() and freopen() with memory files. Memory files are always treated as binary streams of bytes, regardless of the parameters you specify on the function call that opens them.