Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!jato!mars!kaleb From: kaleb@mars.jpl.nasa.gov (Kaleb Keithley) Newsgroups: comp.sys.ibm.pc Subject: Re: Retrieving the value of FILES=??? Keywords: Global File Handle Table Message-ID: <4057@jato.Jpl.Nasa.Gov> Date: 14 Jun 90 15:34:25 GMT References: <605@digigw.digital.co.jp> Sender: news@jato.Jpl.Nasa.Gov Reply-To: kaleb@mars.UUCP (Kaleb Keithley) Organization: Jet Propulsion Laboratory, Pasadena, CA. Lines: 27 In article <605@digigw.digital.co.jp> gday@digigw.digital.co.jp (Gordon Day) writes: >I am confronted with the problem of finding out length of the global file >handle table in DOS (>=3.3). I am aware of the following issues: > > [ much deleted ] How about: (in psuedo-code) #ifdef DOS fopen ("/CONFIG.SYS", "r"); fscanf (..., "FILES=", ...); fscanf (..., value, ...); fclose (...); #else other method appropriate for architecture #end Since all DOS machines have to have CONFIG.SYS in the root directory, it would work for any DOS box. If the fopen fails, then assume the default. kaleb@thyme.jpl.nasa.gov Jet Propeller Labs Kaleb Keithley "So that's what an invisible barrier looks like"