{"success":true,"data":{"ext":"ftxt","name":"FTXT","description":"FTXT is a plain text file format used for structured form data and is typically maintained by the application or workflow system that created it. It is used to store and exchange simple records, templates, or form content in desktop and enterprise data-processing applications. The format is generally low risk, although legacy files may be difficult to open outside the original software environment.","mime":[],"risk_level":"Safe","signatures":[{"hex":"46 4F 52 4D","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"46 54 58 54","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_ftxt(file_path: str) -> bool:\n    \"\"\"Check if file is a valid FTXT by magic bytes.\"\"\"\n    signature = bytes([0x46, 0x4F, 0x52, 0x4D])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isFTXT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsFTXT(data []byte) bool {\n    signature := []byte{0x46, 0x4F, 0x52, 0x4D}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}