Verify the size of a file called     input.txt     for a file in the current working directory, and another one in the file system root.




function GetFileSize( filename )
    local fp = io.open( filename )
    if fp == nil then 
 	return nil 
    end
    local filesize = fp:seek( "end" )
    fp:close()
    return filesize
end