Difference between revisions of "FILEEXISTS"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
(Created page with 'The '''_FILEEXISTS''' function determines if a designated file name exists and returns True or False. {{PageSyntax}} ::: IF _FILEEXISTS(''filename$'') THEN * The ''filename…')
 
imported>Clippy
m
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{DISPLAYTITLE:_FILEEXISTS}}
 
The '''_FILEEXISTS''' function determines if a designated file name exists and returns True or False.
 
The '''_FILEEXISTS''' function determines if a designated file name exists and returns True or False.
  
Line 7: Line 8:
  
  
* The ''filename'' parameter can be a literal or variable [[STRING|string]] that can include a path.
+
* 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 returns -1 when a file exists and 0 when it does not.
 
* The function reads the system information directly without using a [[SHELL]] procedure.
 
* The function reads the system information directly without using a [[SHELL]] procedure.
 +
* The function can 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'''
  
  
Line 15: Line 18:
 
* [[_DIREXISTS]]
 
* [[_DIREXISTS]]
 
* [[SHELL]]
 
* [[SHELL]]
 +
* [[_OS$]]
  
  
 
{{PageNavigation}}
 
{{PageNavigation}}

Revision as of 23:59, 8 August 2013

The _FILEEXISTS function determines if a designated file name exists and returns True or False.


Syntax

IF _FILEEXISTS(filename$) THEN


  • The filename parameter can be a literal or variable 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.
  • The function can 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


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page