🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #50

Re: storing directory into an array

#50
From: Practicum account 91/92
Date: Mon, 06 Apr 1992 08:52
18 lines
979 bytes
I once wanted to have a dir-listing in an array and my solution was this:
I redirected the output of the dir command in a file and then I read the file
into an array I think like this:

SHELL "DIR >TMP.TXT"
OPEN "I",#1,"TMP.TXT"
WHILE NOT EOF(1)
	INPUT #1,ARRAY$(teller)
	teller = teller + 1
WEND
CLOSE #1

But maybe there are some errors in there, I just thought it up. But I hope
the general idea is clear.

Greetings,

Maarten Hofman.
Technical Details
Message-ID: <1992Apr06.085244.3914@donau.et.tudelft.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutentb!vlsi9218
References: <1992Apr3.062548.7308@cc.uow.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutentb!vlsi9218
From: vlsi9218@dutentb.et.tudelft.nl (Practicum account 91/92)
Newsgroups: alt.lang.basic
Subject: Re: storing directory into an array
Message-ID: <1992Apr06.085244.3914@donau.et.tudelft.nl>
Date: 6 Apr 92 08:52:44 GMT
References: <1992Apr3.062548.7308@cc.uow.edu.au>
Sender: vlsi9218@dutentb (Practicum account 91/92)
Organization: Delft University of Technology, Dept. of Electrical Engineering
Lines: 18
Nntp-Posting-Host: dutentc.et.tudelft.nl