I know that "how do i determine if a file exists ?" has been a regular question over the years but I'm struggling to figure out a solution to my problem ....
FileSize() seems to be the normal way to go. However, that appears to be case insenstive so that FileSize(C:\foo.txt) will return the size of C:\FOO.txt if that file exists. This is a problem for me because I am working on a file renaming project and casing is vital to consider.
The procedure I've got so far from the forum is:
Code: Select all
Procedure.i FileExists(fileName.s)
; Returns #True or #False
ProcedureReturn Bool(FileSize(fileName) > -1)
EndProcedure