Subj : Cant increase max open files ? To : borland.public.cpp.borlandcpp From : kaburga Date : Thu Jun 24 2004 10:36 am I change _nfile.h and set max open files to 100. I recompile files.c and files2.c. But I still cant open more than 37 files. I use Borland C 5.2 under Windows 2000. Should I give extra switches to BCC? Any help will be greatly appreciated. I use like this: bcc mytestprg.cpp files.c files2.c or bcc mytestprg.cpp files.obj files2.obj mytestprog is: void TestFileOpen() { int i; FILE *fp; char szFileName[60]; for (i=1; i < 80; i ++) { sprintf(szFileName, "C:\\tst%2d.txt", i); fp = fopen(szFileName, "a"); if (fp) { fputs("Hello\n", fp); printf(szFileName); printf("\n"); } } } void main() { printf("NFile=%d\n", _NFILE_); TestFileOpen(); } .