Update file.rst

add newFile method