Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enviar texto para a memória
Message
From
12/06/2006 08:20:13
Edson Junio
Sistemas Victory
Goiânia, Brazil
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Enviar texto para a memória
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows '98
Miscellaneous
Thread ID:
01128414
Message ID:
01128414
Views:
64
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
Map
View

Click here to load this message in the networking platform