constructor(filePath)
Description
Creates a new File instance bound to the given file
path.
- Stores the path in a private
#filePathfield. - Initializes an internal logger:
new Log("CKN", "STREAM", "FILE").
Signature
constructor(filePath: string)
Example
import { File } from "@ckn-technology/data";
const file = new File("./logs/app.log");