From 07221a6e2eb9ef08eaee026a7c132b15204413ab Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Sat, 5 Nov 2016 17:02:14 +0300 Subject: Add. rockspec and appveyor.yml files. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index aa9a887..d0f5091 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ All Rights Deserved. Use at your own risk!. Shake well before using. #Introduction -winreg is a Lua binary module to Access Microsoft(R) Windows(R) Registry. The registry is a system-defined database that applications and Microsoft(R) Windows(R) system components use to store and retrieve configuration data. +winreg is a Lua binary module to Access Microsoft(R) Windows(R) Registry. The registry is a +system-defined database that applications and Microsoft(R) Windows(R) system components use to +store and retrieve configuration data. Load the module via the require function (make sure Lua can find the module), for example: ```lua @@ -21,8 +23,8 @@ hkey = winreg.openkey[[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVers skey = hkey:openkey([[Explorer\Shell Folders]]) for name in skey:enumvalue() do - print("\nname: " .. name - .. "\npath: " .. skey:getvalue(name)) + print("\nname: " .. name + .. "\npath: " .. skey:getvalue(name)) end ``` -- cgit v1.2.3