🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #154

Turbo Pascal file handling

#154
From: Master, to you
Date: Fri, 23 Mar 1990 22:20
11 lines
1029 bytes
I was wondering if there is any way in Turbo Pascal to close all files that
have been opened during the execution of a program.  (i.e., there are a lot
in this program opened for different purposes).  I know there is the provision
that all files will be closed once program execution has ended, but is there
any way to do this during run-time?

In experimenting with this it seems you can open the same file multiple times.
(which means eventually there are too many files for DOS to handle)
Is this true, and if so, what is the original purpose?
--
  Sean Stasica  aka  "stasica@snoopy.Colorado.EDU"
Technical Details
Message-ID: <18793@boulder.Colorado.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!boulder!stasica

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!boulder!stasica
From: stasica@boulder.Colorado.EDU (Master, to you)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Turbo Pascal file handling
Message-ID: <18793@boulder.Colorado.EDU>
Date: 23 Mar 90 22:20:42 GMT
Sender: news@boulder.Colorado.EDU
Reply-To: stasica@boulder.Colorado.EDU
Organization: University of Colorado at Boulder.
Lines: 11