CompuServe Thread

#File Question

4 messages in this thread
#41181From: Tom Patrick-InnoVision TMay 25, 1994 12:44 AM
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
#41193From: Steve GoddardMay 25, 1994 4:08 PM
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]
#41196From: Vic WagnerMay 25, 1994 8:24 PM
Tom, This is almost certainly a limit in the compiler your using. Have you looked carefully through the docs??
#41237From: Doug WalkerMay 29, 1994 11:49 AM
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