Added methods for writing to a File

Note: Not yet impemented
Added a file mode parameter to File()