create or read a file