...
You could use the simulator component - but honestly it’s probably easier to write you own little component.
Expand |
---|
|
Expand |
---|
title | Use 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 |
---|
title | Read 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 |
---|
title | Then 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.
...