FileSize and large files

BlitzMax Forums/BlitzMax Programming/FileSize and large files

eizdealer(Posted 2006) [#1]
Hello,
It seems to me that with FileSize it's only possible to get correct results with files that are smaller or equal to 2 Gigabytes of size. I suppose this is because FileSize returns an Integer which means that it naturally can't be larger than 2^31 Bytes which is 2 Gigabytes. Is this correct?
I've been trying to write my own FileSize Function but it turned out to be impossible for me because I've never really coded c.
So my request is a FileSizeLong Function that works. Or maybe it already exists?


N(Posted 2006) [#2]
I don't know about the other platforms, but here's one for Windows.

Long Filesize