Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read a text files contents as a variable
#1
Hello all, is there any way to read a text file as a variable? I mean the contents of the text file. The text file I am referencing only has one line. However if there is also a way to access different line numbers could I see that as well? Thanks for any help.


This program makes computing a dream Smile


I see after reading more in the help getfile and setfile have everything covered.
Code:
Copy      Help
str s1 s2 f
f="D:\Test\ArrFiles\Fruit\test.txt"
s1="Chris Johnston"
s1.setfile(f)
s2.getfile(f)
out s2


Messages In This Thread
Read a text files contents as a variable - by pctechtv - 04-06-2019, 07:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)