Page 1 of 1

fileexists() command?

Posted: Thu Apr 01, 2004 9:06 pm
by Dreglor
fileexists() command would be great it would also be quite useful
i pretty sure it not in there (yet)

Posted: Thu Apr 01, 2004 9:15 pm
by Berikco
This is probably an april 1 joke? :D

Code: Select all

If FileSize(Filename$) = -1
  Debug "File not found"
EndIf

Posted: Thu Apr 01, 2004 10:49 pm
by blueznl
it's not a april 1 joke, it's just not very common to check for a file size if you want to know a file exist, most variations of basic have a command for that

yeah, it's in the faq, yeah, i was stupid enough to ask about it as well... :-)

Posted: Fri Apr 02, 2004 9:36 am
by Dreglor
sorry, thanks :)