Check that file exists: Difference between revisions
→{{header|Commodore BASIC}}
Line 444:
==={{header|Commodore BASIC}}===
Try a file, then check the error status of the disk drive.
<lang gwbasic>10 REM CHECK FILE EXISTS
15 ER=0:EM$="":MSG$="FILE EXISTS."
Line 471:
ENTER FILENAME TO CHECK? NOFILE.DOC
'NOFILE.DOC' IS NOT HERE.</pre>
|