if exist... ?
#1
I remember from way back when, there was something like If Exist(filename) to load a file if it existed, so you could provide an option if it didn't, but I can't find it or remember its syntax. Any clues?
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Reply
#2
_FileExists(theFile$) It's a Function ;-)) It will return -1 or True if file exists and 0 = False if it's not found.
b = b + ...
Reply
#3
https://qb64phoenix.com/qb64wiki/index.php/FILEEXISTS
Reply
#4
Thanks Steve. I knew it would be in there somewhere... my searching algorithm isn't quite up to scratch!  Rolleyes
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Reply
#5
Always use this statement...
IF _WIKIEXISTS THEN GOTO WIKI

Pete

- Your SCREEN 0 GOTO guy.
If eggs are brain food, Biden takes his scrambled.
Reply




Users browsing this thread: 4 Guest(s)