🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4772

Opening more files in C

#4772
From: George Zarev
Date: Tue, 19 Feb 1991 04:37
17 lines
1336 bytes
        I am currently writing a large program in microsoft C (6.00) and need
to open more files.My program is spread over 4 separate source code files.The
program needs to operate with around 26 files open simultaneously.

        I have redefined     FOPEN_MAX=40          and
                             SYS_OPEN =40          and
                             _NFILES  =40.

        Also in config.sys I have set
                                             files = 40

       The redefinitions have been included in each of the source code files
which compile successfully.The program runs normally save for the fact that it
won't recognise the new file open limit and still only lets me open the default
limit of 20.
       I've spent two days tearing my hair out on this.Can anyone out there giveme some advice to help solve my problem.
Technical Details
Message-ID: <1991Feb19.043755.1109@cerberus.bhpese.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!munnari.oz.au!metro!nuts!cerberus!soafy!georgez

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!munnari.oz.au!metro!nuts!cerberus!soafy!georgez
From: georgez@soafy.bhpese.oz.au (George Zarev)
Newsgroups: comp.os.msdos.programmer
Subject: Opening more files in C
Summary: How do I open more files????
Message-ID: <1991Feb19.043755.1109@cerberus.bhpese.oz.au>
Date: 19 Feb 91 04:37:55 GMT
Sender: @cerberus.bhpese.oz.au
Organization: BHP, Newcastle, Australia
Lines: 17