I would like to read a file and store it in an array. But I want to read the whole file, so when I specify the number of bytes to read, I want it to read the whole file. How could I go about reading the whole file instead of just a number of bytes? Thank you!
(Im trying to write something close to a "cat" command in Unix)