Reads a file with optional line range and encoding options
Path to the file to read
Read options including line range and encoding
OperationResult containing file content or lines
const result = await readFile('/path/to/file.txt', { startLine: 10, endLine: 20 });if (result.success) { console.log('Lines 10-20:', result.data);} Copy
const result = await readFile('/path/to/file.txt', { startLine: 10, endLine: 20 });if (result.success) { console.log('Lines 10-20:', result.data);}
Reads a file with optional line range and encoding options