lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Monday, July 18, 2011 03:45:52 PM Dave Collins wrote:
> Got it.
> 
> config ={}
> function load_config()
> 	local config_file_name = gre.SCRIPT_ROOT ..
> "/../runtime_config.txt" local f =
> assert(io.open(config_file_name, "r"))
> 	for line in f:lines() do
> 		table.insert(config, line)
> 	end
> end

Hi Dave,

Could you please explain this in very simple English so I can do 
something similar? What are you trying to accomplish? What is in 
runtime_config.txt, both from the content point of view and from the 
format point of view?

This looks to me like it might solve a problem I was asking about a 
few days ago.

Thanks

SteveT

Steve Litt
Author: The Key to Everyday Excellence
http://www.troubleshooters.com/bookstore/key_excellence.htm
Twitter: http://www.twitter.com/stevelitt