tailFile 

Requires a Node.js runtime ('qsu/node')Returns the last line of the specified text file path. The length argument is the total number of lines to print. Default is 1. The last line of newline characters is ignored.
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
filePath | string | ● | – |
| File or directory path | |||
length![]() named | number | – | 1 |
| Number of lines of text to return | |||

named parameters are passed as named parameters in Dart and keyword arguments in Python.
Returns
Promise::string|null
Examples
javascript
await tailFile('/home/targets/hello.md', 2); // 'Good bye\n--- Hello End ---'dart
await tailFile('/home/targets/hello.md', length: 2); // 'Good bye\n--- Hello End ---'python
tailFile('/home/targets/hello.md', 2) # 'Good bye\n--- Hello End ---'