This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 a script to take the value of s from a text file.
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

chandisciple

75 Posts

Posted - 04/20/2016 :  10:08:18  Show Profile
Hey Rob,

Please check this when you get time, I would be able to accomplish something complex with a little hint from how can i achieve the below plan.

I want a local variable Y to take the values loaded in a single text file located in c:\data.txt everytime i print the value of y .

i.e.

y=data1 (from text file)
print y
y=data2 )from text file)

I did check the breakcore post but coudn't figure it out., Please help me out.

Rob

USA
2615 Posts

Posted - 04/20/2016 :  18:34:52  Show Profile  Visit Rob's Homepage
You try checking out this post? It has the pieces you need.

http://stackoverflow.com/questions/11201262/how-to-read-data-from-a-file-in-lua
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000