General information
Category:
Coding, syntax & commands
Title:
Enviar texto para a memória
Olá,
Preciso enviar um arquivo texto para uma variável de memória. Estou usando os seguintes comandos, os quais não estão funcionando bem:
STORE FOPEN('test.txt') TO gnFileHandle
STORE FSEEK(gnFileHandle, 0, 2) TO gnEnd
STORE FSEEK(gnFileHandle, 0) TO gnTop
IF gnEnd <= 0
WAIT WINDOW 'Este arquivo está vazio!' NOWAIT
ELSE
gcString = FGETS(gnFileHandle, gnEnd)
? gcString
ENDIF
= FCLOSE(gnFileHandle)
O bloco acima não está funcionando. Existe outra forma de enviar um arquivo txt para uma variável de memória?
Agradeço.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only