| Write cpp code to Create a file type validator using magic bytes using N/A. accepts file path; reads magic bytes from file header; validates file type; returns type and validation result. Structure the project as: src/, utils/type_validator.cpp, validators/path_validator.cpp. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |