Implementation of reading and writing files on Unix-like systems