f on write and read