Get the Size of a File in C++
I've sometimes had the need to find the size or length of a file in C++. It's pretty easy, but I figured someone out there could make use of my function. I'm just nice like that.
The function returns -1
if the file could not be opened.