Feature request: CLOSE ALL
#1
There is a trick to use the OPEN command to test whether a file exists. The problem with that is that you need to guess at which stream was opened and close it, otherwise you'll get a "stream already in use error" further down the line. A CLOSE ALL command would be a useful way to solve that problem.

In fact, leaving streams open indefinitely is a bad idea anyway. Occasionally you may want to read from one file and write to another, but even then, I prefer to read data into a variable or array, close the stream and then write it to a new one. CLOSE ALL woild make our programs a little more robust.

Yes, you could fake it with a for ... next loop. Having such a command in yab itself would be faster.
Reply


Messages In This Thread
Feature request: CLOSE ALL - by clasqm - 04-15-2017, 07:08 AM
RE: Feature request: CLOSE ALL - by bbjimmy - 04-15-2017, 09:22 AM
RE: Feature request: CLOSE ALL - by clasqm - 04-16-2017, 03:46 AM
RE: Feature request: CLOSE ALL - by bbjimmy - 04-17-2017, 08:55 AM
RE: Feature request: CLOSE ALL - by clasqm - 04-18-2017, 12:35 AM
RE: Feature request: CLOSE ALL - by bbjimmy - 07-07-2017, 02:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)
Free Web Hosting