Versions Compared

Key

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

...

You could use the simulator component - but honestly it’s probably easier to write you own little component.

Expand
titleUse
Expand
titleUse a custom field for the input file name

See Custom Fields Here we use ~/test.txt for the default location of the input file.

You access that with:

Code Block
local FileName = component.fields()
Expand
titleRead in the file using the FIL library with FILread

The FIL library makes it really easy to inhale the file:

Code Block
local Content = FILread("main.lua");
Expand
titleThen we split Examine the file using contents in the translator - each segment ends in \r but the message ends with \n characters

You can look at the file in We can easily see by looking at the contents of the file using the Escaped Text mode:

Image Added

that have a custom field for filename, can read in the messages, split them and push them into a queue.

...