Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
Please visit my Website at: http://oldendayskids.blogspot.com/
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
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply
#5
Always use this statement...
IF _WIKIEXISTS THEN GOTO WIKI

Pete

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

Reply




Users browsing this thread: 1 Guest(s)