checking if a file exists - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

checking if a file exists

i want to check if a certain file in the default directory exists. The file is called 'userfile' and if it doesnt exist, i want to create it.

how do i see if the file exists;

i tried if filesize(loanfile)=0 butit doesnt seem to work and im guessing becase the file doesnt exist

Comments

  • zibadianzibadian Posts: 6,349Member
    : i want to check if a certain file in the default directory exists. The file is called 'userfile' and if it doesnt exist, i want to create it.
    :
    : how do i see if the file exists;
    :
    : i tried if filesize(loanfile)=0 butit doesnt seem to work and im guessing becase the file doesnt exist
    :
    Check out the FileExists() function.
  • sarkiemarkiesarkiemarkie Posts: 89Member
    : : i want to check if a certain file in the default directory exists. The file is called 'userfile' and if it doesnt exist, i want to create it.
    : :
    : : how do i see if the file exists;
    : :
    : : i tried if filesize(loanfile)=0 butit doesnt seem to work and im guessing becase the file doesnt exist
    : :
    : Check out the FileExists() function.
    :

    excellent, thank you

Sign In or Register to comment.