Am Thu, 23 Jan 2014 23:17:24 +0100
schrieb Hans Hagen pra...@wxs.nl:
\startluacode
local f = io.open(test.dat)
for line in f:lines() do
local t = string.split(line,;) -- or \t for tabs
context(% /t,t) -- context(table.concat(t, / )
context.par()
On 1/25/2014 1:32 AM, Joshua Krämer wrote:
Am Thu, 23 Jan 2014 23:17:24 +0100
schrieb Hans Hagen pra...@wxs.nl:
\startluacode
local f = io.open(test.dat)
for line in f:lines() do
local t = string.split(line,;) -- or \t for tabs
context(% /t,t) --
Dear list,
I use the database module to load the lines of a file with some
data. The lines are then separated with a lua script. I use lua,
because I need to do some other things with the data (rounding
numbers, combining some fields etc.) Please consider the following
minimal working example:
On 1/23/2014 9:43 PM, Joshua Krämer wrote:
Dear list,
I use the database module to load the lines of a file with some
data. The lines are then separated with a lua script. I use lua,
because I need to do some other things with the data (rounding
numbers, combining some fields etc.) Please