Hi all,
Is there a way to directly read a binary file into RAM?
What I mean is, is there a way to tell the compiler, here's the file, here's the block of RAM, please put the file contents in the RAM, off you go, quickly as you can please.
Currently I'm stepping through the file with ifstream loading it into RAM (an array) 64bit block by 64 bit block. But I'm thinking that this must slow it down as it's like (here comes an analogy) using a thimble to bail the water out of a cup (the file) into a jug (the RAM) rather than just picking up the cup and tipping the entire contents into the jug in one go.
As a relative newcomer to this I may have completely the wrong idea about this - any guidence would be a great help.
I'm just after the quickest way to get a big file into RAM.
Thanks