Hi, I've searched about this topic A LOT, but I can't find anything OS independent, so I'm asking here.

First a little context:

I have a digital video recorder that every 935 mB splits the file it's recording. It does split them in a special way, so simply concatenating the files won't work, so I've written a program to do it for me. So far the program works allright.

Here comes the problem: the resultant file will most likely be >4 gB some times, so I would like to know if the filesystem will support that big file before attempting to write it, so I've thought of two ways of doing that:

1.- Check the filesystem of the disk and manually add the size limits to the program for the most common file systems.
2.- Straight get the file size limit of the file system.

I would prefer option #2, but I would be happy if I only was able to know if the filesystem is a FAT one, as all others will most likely support more file size than I need.


Thanks in advance