{"success":true,"data":{"ext":"dw4","name":"Visio/DisplayWrite 4 text file","description":"DisplayWrite 4 text file is a legacy document format developed by IBM for its DisplayWrite 4 word processor. It was used for storing formatted text documents, letters, and office correspondence, and may be encountered in archived business files or when converting older word processing content. The format is obsolete and generally low risk, although files from untrusted sources should still be opened with standard caution in modern software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4F 7B","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_dw4(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DW4 by magic bytes.\"\"\"\n    signature = bytes([0x4F, 0x7B])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isDW4(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4F, 0x7B]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsDW4(data []byte) bool {\n    signature := []byte{0x4F, 0x7B}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}