import { readFileSync, writeFileSync } from 'node:fs';
import iconv from 'iconv-lite';
const ENCODING = 'windows-1255';
export function readTextFile(filePath) {
    const buffer = readFileSync(filePath);
    return iconv.decode(buffer, ENCODING);
}
export function writeTextFile(filePath, content) {
    const buffer = iconv.encode(content, ENCODING);
    writeFileSync(filePath, buffer);
}
//# sourceMappingURL=encoding.js.map