1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 09:05:17 +00:00
qb64/internal/help/_FILEEXISTS.txt

24 lines
774 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_FILEEXISTS}}
The '''_FILEEXISTS''' function determines if a designated file name exists and returns True or False.
{{PageSyntax}}
::: IF _FILEEXISTS(''filename$'') THEN
* The ''filename'' parameter can be a literal or variable [[STRING|string]] value that can include a path.
* The function returns -1 when a file exists and 0 when it does not.
* The function reads the system information directly without using a [[SHELL]] procedure.
2016-03-18 11:36:04 +00:00
* The function will use the appropriate Operating System path separators. [[_OS$]] can determine the operating system.
* '''This function does not guarantee that a file can be accessed or opened, just that it exists'''
''See also:''
2016-03-18 11:36:04 +00:00
* [[_DIREXISTS]], [[_OS$]]
* [[SHELL]], [[FILES]]
* [[KILL]]
{{PageNavigation}}