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

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | 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.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chandisciple

75 Posts

Posted - 04/20/2016 :  10:08:18  Show Profile  Reply with Quote
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
2606 Posts

Posted - 04/20/2016 :  18:34:52  Show Profile  Visit Rob's Homepage  Reply with Quote
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  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000