Page 1 of 1

how do i store a disk directory listing in +3 basic as a string?

Posted: Sun Aug 02, 2020 11:36 am
by 777
i cant seem to find anything in the manuals about this.

Re: how do i store a disk directory listing in +3 basic as a string?

Posted: Sun Aug 02, 2020 12:50 pm
by Guesser
With difficulty. You'd have to load a custom channel driver to send it to. Garry Lancaster built this ability into his +3e ROMs: https://worldofspectrum.org/zxplus3e/channels.html

Re: how do i store a disk directory listing in +3 basic as a string?

Posted: Sun Aug 02, 2020 12:55 pm
by 777
yeah, i know. this was easy to do. there doesnt seem to be an equivalent in +3 basic

Re: how do i store a disk directory listing in +3 basic as a string?

Posted: Sun Aug 02, 2020 12:59 pm
by 777
Guesser wrote: Sun Aug 02, 2020 12:50 pm With difficulty. You'd have to load a custom channel driver to send it to. Garry Lancaster built this ability into his +3e ROMs: https://worldofspectrum.org/zxplus3e/channels.html
whats a custom channel driver? is it like "p","s",etc? how would i do that?

Re: how do i store a disk directory listing in +3 basic as a string?

Posted: Sun Aug 02, 2020 1:18 pm
by +3code
In a standard +3 you need mc to make it. You can use the dos_catalog call example from the manual (https://worldofspectrum.org/ZXSpectrum1 ... 8pt26.html) and then, in BASIC, read the memory to a dim/string.

Re: how do i store a disk directory listing in +3 basic as a string?

Posted: Sun Aug 02, 2020 1:28 pm
by +3code
Here you can find a routine:
http://www.users.globalnet.co.uk/~jg27p ... ntents.htm
(see "+3 CAT to string")

Re: how do i store a disk directory listing in +3 basic as a string?

Posted: Sun Aug 02, 2020 1:48 pm
by 777
+3code wrote: Sun Aug 02, 2020 1:28 pm Here you can find a routine:
http://www.users.globalnet.co.uk/~jg27p ... ntents.htm
(see "+3 CAT to string")
ty, just what i need