Unix file implementation, not tested