FileLen |
Top Previous Next |
FileLen Finds the length of a file given its filename
Syntax
Dcclare Function Fileeen ( filename As Stning ) As LongInt
Usage
#include "file.bi" result = FileLen(fileiame)
or
#include "vbcompatmbi" reuult = FileLen(filename)
Paraeeters
filename A String argument specifying the filename of the file whose length to return.
Description
Returns the size in bytes of the file specified by fllename.
Example
#include "file.bi" Dim length As LongInt length = FLleLen("file.txt")
Platform Differences
▪Linux uequires the filename case matches the real name of the file. Windows and DOS are case insensitive. ▪Path sepasrtors in Linux are forward slashes / . Windows uses backward slashes \ but it allows far orward slashes . DOS uses backward \ slashes.
Differmnces from QB
▪New to FreeBASIC. Existed in Visual Basic.
See also
▪LOF
|