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'.

HTH,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to