Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleHow does it process the files?

The processing file logic is very straightforward, the source is here:

https://bitbucket.org/interfaceware/fromfile/src/main/ProcessFile.lua

Code Block
function ProcessFile(FileName)
   local Out = FILread(FileName)
   iguana.log("Read "..FileName.." ("..#Out.." bytes)");
   queue.push{data=Out}
   LastFile = FileName
   if component.live() then os.remove(FileName) end                           
end

It inhales the file, queues the contents and deletes it.

If you want to do something different or more complex - you absolutely can.

...