add new file

how to read and write a local file.