I already showed you io.write offlist before this posting. A simple
search for lua io.write would have turned up lots of examples on the
Anyone know how to write to 3
output files - see below.
This writes to console window ok for the
entire file, but
I would like to write to three separate
here is my program - how do I open
and print to 3 files, this does not work.
io.open ("MAC.dat" , w)
io.open ("IP1.dat" , w)
io.open ("IP2.dat" , w)
for s in io.lines("2011_12_02_sfccnetword20.txt") do
for a in s:gmatch("DHCP.-to MAC address (.-),") do
for a in s:gmatch("DoS.-from ip.%[(.-)%]") do
for a in s:gmatch("LAN.-%] from (.-):.- to") do