Add file mode for binary file