Read data from local file .lst - Forum

Forum Navigation
You need to log in to create posts and topics.

Read data from local file .lst

Hello all,

I am using VisualNeo Win to send commands to other windows, the output is writen to a local .lst file. After that I'm trying to read the .lst file and setting a variable with the content. I tested two commands to read the .lst file:

1- FileToVar "[PubDir]output.lst" "[output_lst]"
2- FileRead "[PubDir]output.lst" "All" "[output_lst]"

Now, the problem is that when I click and send the commands from a menu object or subroutine that contains the function, the variable doesn't display the value, but if rigth away I click a button that contains same comands (1 or 2) , it does.
Any clue please ?.

Regards,

Sam

Hi,

Ok, i reply my self, in case another person have the same problem. The execution is so fast that there is no time to generate and read the external file, that's the reason nothing is displayed, i had to put some delay and works.

Regards,

Sam.