Kein-Hong Man wrote:
Doyle Whisenant wrote:

[snip]
function read_session()
  local ln = 0
  local n  = 1
  local bufferpath = props['FilePath']
  local f = io.open("SciTE.ses", "r")
  if not f then return nil end
  for ln in f:lines() do
    local s=f:read"*l"  <--
    print (n)
    n=n+1
  end
  f:close()
  return true
end


f:lines() and f:read"*l" are reading alternate lines. To fix, remove the latter. Each line is already read into the string 'ln'.

Thanks, I actually figured it out a while later. I appreciate the help because Lua and me don't see eye to eye yet. ;-)

--
Doyle Whisenant
http://www.freewebs.com/mekdesign/
"mechanic" at "sonet" dot "net"

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to