So from what I have read there is no end of file char like \0 (for
text) that marks the end of a binary file. Is this true? If this is
true the only way one can read a binary file is to get the size of the
binary file and read the file while the entire file hasn't fully be
read yet.
I guess another way would be to get the size of the file and use
malloc to allocate space on the heap and read the entire file to the
heap.
is there another way of doing this? For instance what if the file is
really big.. Do you use option 1 that I suggested or is there an
easier and more practical way.
J.