Páginas filhas
  • LOG_file_readBlock

Versões comparadas

Chave

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

...

Tipo

Descrição

VARCHAR

Retorna o conteúdo lido do arquivo, conforme o tamanho do bloco indicado.

Se o valor retornado for NULO, indica final de arquivo.

Exemplo

Bloco de código
languageruby
themeConfluence
linenumberstrue
#---------------------------------------#
 FUNCTION LOG_fileReadBlock_test()
#---------------------------------------#
  DEFINE l_file   CHAR(250)
  DEFINE l_handle SMALLINT
  DEFINE l_text   VARCHAR(1000)

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

  LET l_handle = LOG_file_open(l_file,0)
  IF l_handle >= 0 THEN
     LET l_text = LOG_file_readBlock(l_handle,100)
     CALL conout("Leitura de bloco de 100 bytes: ["||l_text||"]")
     LET l_handle = LOG_file_close(l_handle)
  END IF
END FUNCTION

...

LOG_file_open

LOG_file_openMode

LOG_file_readln