Quantcast Multiply variable reading of io.open - LoTROInterface
Search Downloads

Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Thread Tools Display Modes
Unread 10-29-2011, 02:14 AM
Calax Calax is offline
The Wary
Join Date: Oct 2011
Posts: 1
Multiply variable reading of io.open

Hello! I have been looking around almost everywhere and not found any example or anything about how you store more than 1 value inside a document.

However I would strongly appreciate a example or if it´s even possible to do so

--Loading the stored variables into a program

local Reader = io.read(file, 'w+')
if Reader:read(1stvariable) then
Variableinside program = 1stvariable
if Reader:read(2ndvariable) then
Variableinside program = 2ndvariable

2nd question is

can I use io.write() to only edit the 1stvariable/2ndvariable

in other words how can I edit the 1stvariable/2ndvariable without editing the other one?

Hope I did describe what I want! I'm so thankful if anyone could take their time to help me!
Reply With Quote
Unread 10-29-2011, 03:36 AM
Digital_Utopia's Avatar
Digital_Utopia Digital_Utopia is offline
The Undying
Interface Author - Click to view interfaces
Join Date: Sep 2010
Posts: 207
Send a message via MSN to Digital_Utopia Send a message via Yahoo to Digital_Utopia
lua file library is disabled for the lotro implementation. for saving/loading settings use the plugindata class

Lord of the Rings Online
75 Fourohfour | 75 Artemedis | 60 Whiskeytango Foxtrot | 50 Mistah Boombastic | 56 Appetizer | 25 Aggromi
61 Onepointtwentyone Gigawatts

World of Warcraft
90 Downlo 85 Gravetaxi 85 Ümad 85 Artemedis 85 Guthuros
Reply With Quote

Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RiftUI is now Open Cairenn News 0 06-03-2011 08:17 PM
War.MMOUI.com Now Open! Cairenn News 0 09-07-2008 03:13 AM

All times are GMT -5. The time now is 12:46 AM.

Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui