Depending on whether the file is benign (needed by a genuine program) or malicious, your approach will differ.