Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #1097

Re: Clean up in case of quitting a task window

From "David Holden" <SpamBin@apdl.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Clean up in case of quitting a task window
Date 2011-11-29 20:51 +0000
Organization APDL
Message-ID <9jkutnFd3aU1@mid.individual.net> (permalink)
References <d537e43952.Thomas@thomas-milius.t-online.de>

Show all headers | View raw


On 29-Nov-2011, Thomas Milius <Thomas-Milius@t-online.de> wrote:

> I am running a BASIC program inside a task window. It is opening a couple
> of files. I want to close these files in case that the Taskwindow is quit.
> How can I achieve this?

I would suggest that you don't leave files open unless you're actually
accessing them. It's common practice to open a file and leave it open until
the program quits or it's completely finished with. If you open the file,
read/write the data, then immediately close the file the opportunities for
anything external to cause problems are minimal.

-- 
David Holden  -  APDL  -  <http://www.apdl.co.uk>

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Clean up in case of quitting a task window Thomas Milius <Thomas-Milius@t-online.de> - 2011-11-29 21:02 +0100
  Re: Clean up in case of quitting a task window "David Holden" <SpamBin@apdl.co.uk> - 2011-11-29 20:51 +0000
  Re: Clean up in case of quitting a task window Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-11-30 07:58 +0100
    Re: Clean up in case of quitting a task window Thomas Milius <Thomas-Milius@t-online.de> - 2011-11-30 19:40 +0100

csiph-web