#File Question
4 messages in this thread
Hi,
I was wondering if some of the more experienced could/would help with some
information. Is there a way to set the maximum number of file handles that can
be open at one time? Can this be done in AmigaDOS or the Lattice "C" compiler?
Which is best & why? The limit by default seems to be around 36.
Any comments or info would be greatly appreciated and be rewarded with good
karma forever. Thanks!
TP #72212,1103
Hmmm, I'm not sure I follow the idea of 'max file handles'. There are many
different ways of opening files, according to whether you want to use AmigaDOS,
ANSI, UNIX etc compatible routines.
I prefer to use the AmigaDOS routines, and I've got a monster program that
opens lots of files. I haven't found a limit yet. I'm not sure what the exact
figure is, but I think that I have 200-300 files open simultaneously!
Steve the G. [BEDFORDSHIRE, UK]
Tom,
This is almost certainly a limit in the compiler your using. Have you
looked carefully through the docs??
Tom,
There is a limit on the number of open files in older versions of the
Lattice compiler, but I'm not sure what it is. Lattice version 5 and higher
should be unlimited, and SAS/C version 6 is definitely unlimited.
–Doug