fileexists() command would be great it would also be quite useful
i pretty sure it not in there (yet)
fileexists() command?
fileexists() command?
~Dreglor
This is probably an april 1 joke?

Code: Select all
If FileSize(Filename$) = -1
Debug "File not found"
EndIf
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...
yeah, it's in the faq, yeah, i was stupid enough to ask about it as well...

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )