self.yaffs_handle = yaffs_open(current_directory_dict[self.id]["path"],66,0666)
length_of_file=yaffs_lseek(self.yaffs_handle, 0, 2) ##seeks to the end of the file
yaffs_lseek(self.yaffs_handle, 0, 0)## returns the handle to the front of th file
self.yaffs_handle = yaffs_open(current_directory_dict[self.id]["path"],66,0666)
length_of_file=yaffs_lseek(self.yaffs_handle, 0, 2) ##seeks to the end of the file
yaffs_lseek(self.yaffs_handle, 0, 0)## returns the handle to the front of th file