FileSize and large files

BlitzMax Forums/BlitzMax Programming/FileSize and large files

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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?