Implementation of file IO and partial filesystem functionality