Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-12-18, 07:08 PM   #1
Christavious
A Murloc Raider
Join Date: Apr 2018
Posts: 6
Read in text file

Is there a way to set a variable from a text file?

local text = io.open("file.text", "r")
print(text)

Text file contents:
This is a test.

When I load the game, "This is a test." should show, but I get nothing. Any ideas?
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » Read in text file


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off