On most UNIX flavors I can use the stat() system call and the {struct stat}.st_blksize member to get an idea of the blocksize of a regular file.
I don't currently have access to anything but Linux, Solaris and AIX to check this one, and I'm especially not sure about VMS, but for now I'm using this as the most portable method. If anyone has a system where this member is not in the stat struct please tell me since this is not a POSIX thing. -Melvin