Higher level API for node's fs library