KB-29371: Reading a TXT file.

Question:

How can I read a one-line TXT file with a number in it?

Solution:

To do so, you must use the ReadFromFile() method.

For example:

dim var, tst
var = ReadFromFile(“D:\file.txt”)
tst = Real(var)
MessageBox(tst)

NOTE: In case you use the example above, don’t forget to create the TXT file.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *