Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== file plugin ====== This plugin allows reading of a line from a file. ---- ===== Functions ===== |file::readline('/path/to/file', line_number)| This plugin returns up to 80 characters of a line from a file. Characters after that in the line are simply ignored. The plugin could be a logical place to add more file operations, such as size, permissions display, etc. ---- ===== Example ===== <code> Widget dmesgline99 { class 'Text' expression file::readline('/var/log/dmesg', 99) width 20 align 'M' update 10000 } </code> ---- plugin_file.txt Last modified: 2020/07/17 18:33(external edit)