FILES

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
izidor
Veteran
Posts: 110
Joined: Wed Apr 22, 2009 3:13 am
Contact:

FILES

Post by izidor »

I am using QB64, but it FILES isn't implemented yet so I am making a replacement for it by using SHELL and DIR.

Code: Select all

SHELL "dir *.TXT > txt.txt "
'and then I open txt.txt and print it
This works perfectly, but it prints the date when the file was created.
Does anyone know how to remove it so I can see only the name and extension.
winodude
Newbie
Posts: 1
Joined: Tue Apr 27, 2010 11:46 am

Files

Post by winodude »

You can use the "bare" listing of the DIR command...

dir *.txt /b

This will only list file names with extensions.
izidor
Veteran
Posts: 110
Joined: Wed Apr 22, 2009 3:13 am
Contact:

Post by izidor »

Thanks both!
Post Reply