Páginas filhas
  • LOG_file_size

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Tipo

Descrição

INTEGER

Retorna o tamanho do arquivo (em Bytes).

Quando não encontrar o arquivo, o retorno será (-1).

Exemplo

Bloco de código
languageruby
themeConfluence
linenumberstrue
#---------------------------------------#
 FUNCTION LOG_fileSize_test()
#---------------------------------------#
  DEFINE l_file CHAR(250)
  DEFINE l_size INTEGER

  LET l_file = "c:\\temp\\arquivo1.txt"

  LET l_size = LOG_file_size(l_file,0)
  IF l_size >= 0 THEN
     CALL conout("Tamanho do arquivo = "||l_size)
  ELSE
     CALL conout("Arquivo não encontrado ou falha de permissão de leitura do arquivo.")
  END IF
END FUNCTION

...