Posted: Mon Jul 29, 2002 8:11 am
Restored from previous forum. Originally posted by cor.
Manual says:
Result = FileSize(FileName$)
Description
Returns the size of the specified file.
Special 'Result' values:
-1: File not found.
-2: File is a directory
Filesize returns always -1 whether the file exists or not exists
Using Windows 98 SE
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
Manual says:
Result = FileSize(FileName$)
Description
Returns the size of the specified file.
Special 'Result' values:
-1: File not found.
-2: File is a directory
Filesize returns always -1 whether the file exists or not exists
Code: Select all
; Get app's directory.
appdir$=Space(255)
GetCurrentDirectory_(255,appdir$)
If Right(appdir$,1) "\"
appdir$=appdir$+"\"
EndIf
;Check if chorddef.dat exists
return=FileSize(appdir$+"chorddef.dat")
MessageRequester("",str(return),0)
Registered PB version : 3.2 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com