Basic functionality to read/write a file less than PSIZE bytes