Get your own free workspace
View
 

FileSize

Page history last edited by Gamemaster 3 years, 9 months ago

 

 

FileSize

Usage:

                FileSize(Filename)

Description:

The FileSize command returns the size in bytes of a given file.

Example:

                Function Main()
                        F = OpenFile("Test.txt")
                                // Move to the end of the file, so we can add data instead of overwriting
                                SeekFile(F, FileSize("Test.txt"))
                                // Add a line to the file
                                WriteLine(F, "This is an extra line added to the file.")
                        CloseFile(F)
                        Return()

                End Function

Comments (0)

You don't have permission to comment on this page.