Generic file access library