how to delete a file based on users input

All aspects of programming on the Commander X16.
Post Reply
whitepaperkat
Posts: 6
Joined: Thu Nov 30, 2023 12:52 am

General - CX16 how to delete a file based on users input

Post by whitepaperkat »

I want to make a very simple like a disk util or file manager in basic for the commander but how do open a file and delete it with the file name that the user typed in I know you can delete files with open15,8,15,"s:filename":close1
TomXP411
Posts: 1783
Joined: Tue May 19, 2020 8:49 pm

Re: how to delete a file based on users input

Post by TomXP411 »

10 PRINT "FILENAME";
20 INPUT A$
30 DOS "S:"+A$
whitepaperkat
Posts: 6
Joined: Thu Nov 30, 2023 12:52 am

Re: how to delete a file based on users input

Post by whitepaperkat »

Thanks, I kinda figured it was that oof do I feel silly
Post Reply