Added and implemented the write and writeByte methods for File streams.