if exist... ? - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: if exist... ? (/showthread.php?tid=822) |
if exist... ? - PhilOfPerth - 08-28-2022 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? RE: if exist... ? - bplus - 08-28-2022 _FileExists(theFile$) It's a Function ;-)) It will return -1 or True if file exists and 0 = False if it's not found. RE: if exist... ? - SMcNeill - 08-28-2022 https://qb64phoenix.com/qb64wiki/index.php/FILEEXISTS RE: if exist... ? - PhilOfPerth - 08-28-2022 Thanks Steve. I knew it would be in there somewhere... my searching algorithm isn't quite up to scratch! RE: if exist... ? - Pete - 08-28-2022 Always use this statement... IF _WIKIEXISTS THEN GOTO WIKI Pete - Your SCREEN 0 GOTO guy. |