other than posts about spam, this place seems like a ghost town lately!
Later this week Ill try to post some updates on my GUI Dream16.
annnyyywaaay...
Is there any way that I can read the contents of a directory in Qbasic? Lets say that I wanted to return file names and/or info from C:\, like DIR in ms-dos. Can I do that in Qbasic by itself or do I need to use assembly?
Thanks.
Question about files
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Pipe the information to a file and read that.
CHDIR to a folder path or use the path in a SHELL:
SHELL "DIR *.BAS /B > Folder.dat" ' /B returns nothing else but a list of filenames.
Ted
CHDIR to a folder path or use the path in a SHELL:
SHELL "DIR *.BAS /B > Folder.dat" ' /B returns nothing else but a list of filenames.
Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0