Copy all the member variables data to file and file to another member variable

Copy all the member variables data to file and file to another member variable