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

The place for codemasters or beginners to talk about programming any language for the Spectrum.
Post Reply
777
Berk
Posts: 38
Joined: Fri Jun 26, 2020 11:23 am

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

Post by 777 »

i cant seem to find anything in the manuals about this.
0 x

User avatar
Guesser
Microbot
Posts: 179
Joined: Wed Nov 15, 2017 2:35 pm
Contact:

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

Post 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
0 x

777
Berk
Posts: 38
Joined: Fri Jun 26, 2020 11:23 am

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

Post by 777 »

yeah, i know. this was easy to do. there doesnt seem to be an equivalent in +3 basic
0 x

777
Berk
Posts: 38
Joined: Fri Jun 26, 2020 11:23 am

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

Post 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?
0 x

+3code
Microbot
Posts: 134
Joined: Fri Dec 06, 2019 11:43 pm
Location: Valencia, Spain

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

Post 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.
0 x

+3code
Microbot
Posts: 134
Joined: Fri Dec 06, 2019 11:43 pm
Location: Valencia, Spain

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

Post by +3code »

Here you can find a routine:
http://www.users.globalnet.co.uk/~jg27p ... ntents.htm
(see "+3 CAT to string")
0 x

777
Berk
Posts: 38
Joined: Fri Jun 26, 2020 11:23 am

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

Post 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
0 x

Post Reply