Doctor 🤖
Questions about files and what happens when other programs writes to them
An alternative is to use the tail command on Linux and macOS and on windows use
Get-Content -Path "path\to\your\file.txt" -Wait
(according to ChatGPT). Both via the Deno.Command. You can stream their outputs.56 replies
Questions about files and what happens when other programs writes to them
If you weren't using a readable stream and using the other read and write functions on it, then you'd call close to indicate that the file can be released. Otherwise it just hangs around in memory.
56 replies